Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
World.cpp File Reference
#include "World.hpp"
#include <algorithm>
#include <set>
+ Include dependency graph for World.cpp:

Go to the source code of this file.

Functions

static bool _checkReqs (const Tile &tile, const std::vector< int > &participants, int level, const std::unordered_map< int, Player > &players)
 

Variables

static const IncantationReq INCANTATION_REQS [7]
 

Function Documentation

◆ _checkReqs()

static bool _checkReqs ( const Tile tile,
const std::vector< int > &  participants,
int  level,
const std::unordered_map< int, Player > &  players 
)
static

Definition at line 269 of file World.cpp.

References DERAUMERE, Resources::deraumere, INCANTATION_REQS, LINEMATE, Resources::linemate, MENDIANE, Resources::mendiane, PHIRAS, Resources::phiras, Tile::playerIds, Tile::resources, SIBUR, Resources::sibur, THYSTAME, and Resources::thystame.

Referenced by World::finalizeIncantation(), and World::startIncantation().

+ Here is the caller graph for this function:

Variable Documentation

◆ INCANTATION_REQS

const IncantationReq INCANTATION_REQS[7]
static
Initial value:
= {
{1, 1, 0, 0, 0, 0, 0},
{2, 1, 1, 1, 0, 0, 0},
{2, 2, 0, 1, 0, 2, 0},
{4, 1, 1, 2, 0, 1, 0},
{4, 1, 2, 1, 3, 0, 0},
{6, 1, 2, 3, 0, 1, 0},
{6, 2, 2, 2, 2, 2, 1},
}

Definition at line 259 of file World.cpp.

Referenced by _checkReqs(), World::finalizeIncantation(), and World::startIncantation().