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

Go to the source code of this file.

Functions

static std::string id (int n)
 
static std::string n (int v)
 
static std::string res (const Resources &r)
 

Function Documentation

◆ id()

static std::string id ( int  n)
static

Definition at line 3 of file Serializer.cpp.

References n().

Referenced by ClientManager::_rebuildPollFds(), World::addPlayer(), Serializer::ebo(), Serializer::edi(), Serializer::enw(), Serializer::pbc(), Serializer::pdi(), Serializer::pdr(), Serializer::pex(), Serializer::pfk(), Serializer::pgt(), Serializer::pin(), Serializer::plv(), Serializer::pnw(), Serializer::ppo(), Connection::setPlayerId(), and Serializer::sse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ n()

static std::string n ( int  v)
static

Definition at line 4 of file Serializer.cpp.

Referenced by ClientManager::_handleEvents(), Serializer::bct(), Serializer::enw(), Serializer::gwt(), id(), Serializer::msz(), Serializer::pdr(), Serializer::pgt(), Serializer::pic(), Serializer::pie(), Serializer::pin(), Serializer::plv(), Serializer::pnw(), Serializer::ppo(), res(), Serializer::sgt(), Serializer::sse(), Serializer::sst(), and Serializer::stu().

+ Here is the caller graph for this function:

◆ res()

static std::string res ( const Resources r)
static

Definition at line 5 of file Serializer.cpp.

References Resources::deraumere, Resources::food, Resources::linemate, Resources::mendiane, n(), Resources::phiras, Resources::sibur, and Resources::thystame.

Referenced by _tileContent(), Serializer::bct(), operator<<(), AiParser::parse(), and Serializer::pin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: