FastEcslent::NetThread Class Reference

#include <netThread.h>

Inheritance diagram for FastEcslent::NetThread:

FastEcslent::Server FastEcslent::Server FastEcslent::Server FastEcslent::Server FastEcslent::Server

List of all members.

Public Member Functions

 NetThread (Engine *eng)
void run ()
void init ()
void stopAndJoin ()
void stop ()
int getNetId (Entity *ent)
EntitygetEntityFromNetId (int entID)
void clientTick ()
void handleServerMessages ()
void updateState (Message *m)
void updateState (State *s)
void createEntFromClientReq (int builderid, FastEcslent::EntityType ent, Ogre::Vector3 pos)
void createEntFromClientReq (Message *m)
void createEntFromClientRes (int builderid, int builtid)
void createEntFromClientRes (Message *m)
void createEnt (Message *m)
void createEnt (Info *info)
void sendCommands ()
void sendCommand (int id, float dh, float ds)
void squelchEnts (Message *m)
void serverTick ()
void handleClientMessages ()
void handleMessage (Message *m)
void sendInfo (Message *m)
void propagateCommand (Message *m)
void combineCommandsIntoNetMessage ()
void combineSquelchesIntoNetMessage ()
void sendLobbyClientResponse (std::string clientIP, int port, int side, int player)
void lobbyStart ()
void addCommand (CommandEntity *m)
void addSquelch (SquelchEntity *m)
void requestMineralPatchID (int mineralid)
void responseMineralPatchID (Message *m)
void updateMineralPatchID (Message *m)
void serve ()
void gameTick ()
 NetThread (Engine *eng)
void run ()
void init ()
void stopAndJoin ()
void stop ()
void clientTick ()
void updateState ()
void sendCommands ()
void serverTick ()
void handleClientMessages ()
MessagegetMessage ()
void handleMessage (Message *m)
void sendInfo (Message *m)
void serve ()
 NetThread (Engine *eng)
void run ()
void init ()
void stopAndJoin ()
void stop ()
void clientTick ()
void updateState ()
void sendCommands ()
void serverTick ()
void handleClientMessages ()
MessagegetMessage ()
void handleMessage (Message *m)
void sendInfo (Message *m)
void serve ()
 NetThread (Engine *eng)
void run ()
void init ()
void stopAndJoin ()
void stop ()
int getNetId (Entity *ent)
void clientTick ()
void handleServerMessages ()
void updateState (Message *m)
void updateState (State *s)
void createEnt (Message *m)
void createEnt (Info *info)
void sendCommands ()
void sendCommand (int id, float dh, float ds)
void squelchEnts (Message *m)
void serverTick ()
void handleClientMessages ()
void handleMessage (Message *m)
void sendInfo (Message *m)
void propagateCommand (Message *m)
void combineCommandsIntoNetMessage ()
void combineSquelchesIntoNetMessage ()
void sendLobbyClientResponse (std::string clientIP, int port, int side, int player)
void lobbyStart ()
void addCommand (CommandEntity *m)
void addSquelch (SquelchEntity *m)
void serve ()
void gameTick ()
 NetThread (Engine *eng)
void run ()
void init ()
void stopAndJoin ()
void stop ()
int getNetId (Entity *ent)
void clientTick ()
void handleServerMessages ()
void updateState (Message *m)
void updateState (State *s)
void createEnt (Message *m)
void createEnt (Info *info)
void sendCommands ()
void sendCommand (int id, float dh, float ds)
void squelchEnts (Message *m)
void serverTick ()
void handleClientMessages ()
void handleMessage (Message *m)
void sendInfo (Message *m)
void propagateCommand (Message *m)
void combineCommandsIntoNetMessage ()
void combineSquelchesIntoNetMessage ()
void sendLobbyClientResponse (std::string clientIP, int port, int side, int player)
void lobbyStart ()
void addCommand (CommandEntity *m)
void addSquelch (SquelchEntity *m)
void serve ()
void gameTick ()

Public Attributes

Engineengine
Listenerlistener
Sendersender
bool insideLobby
bool isServer
int port
std::string myIPAddress
boost::posix_time::milliseconds * sleepTime
Engineengine
Listenerlistener
Sendersender
Engineengine
Listenerlistener
Sendersender
Engineengine
Listenerlistener
Sendersender
boost::posix_time::milliseconds * sleepTime
Engineengine
Listenerlistener
Sendersender
boost::posix_time::milliseconds * sleepTime

Protected Member Functions

udp::endpoint getMyIP ()
udp::endpoint getMyIP ()

Private Member Functions

void runThread ()
void sendUnknownEntQueries ()
void runThread ()
void runThread ()
void runThread ()
void sendUnknownEntQueries ()
void runThread ()
void sendUnknownEntQueries ()

Private Attributes

boost::thread netThread
int TICK_SLEEP_TIME
ptime startTime
bool quit
std::map< int, State * > unknows
std::map< int, Entity * > netIdToEntMap
std::map< Entity *, int > netEntToIdMap
std::deque< CommandEntity * > commandQueue
std::deque< SquelchEntity * > squelchQueue
udp::endpoint myIP
NetCommonnetCommon
boost::posix_time::milliseconds * serverSleepTime
boost::posix_time::milliseconds * serverSleepTime
std::map< int, State * > unknows
std::map< int, Entity * > netIdToEntMap
std::map< Entity *, int > netEntToIdMap
std::deque< CommandEntity * > commandQueue
std::deque< SquelchEntity * > squelchQueue
NetCommonnetCommon
std::map< int, State * > unknows
std::map< int, Entity * > netIdToEntMap
std::map< Entity *, int > netEntToIdMap
std::deque< CommandEntity * > commandQueue
std::deque< SquelchEntity * > squelchQueue
NetCommonnetCommon


Detailed Description

Definition at line 33 of file netThread.h.


Constructor & Destructor Documentation

FastEcslent::NetThread::NetThread ( Engine eng  )  [inline]

Definition at line 67 of file netThread.h.

References engine.

FastEcslent::NetThread::NetThread ( Engine eng  )  [inline]

Definition at line 59 of file netThread.h.

References engine.

FastEcslent::NetThread::NetThread ( Engine eng  )  [inline]

Definition at line 59 of file netThread.h.

References engine.

FastEcslent::NetThread::NetThread ( Engine eng  )  [inline]

Definition at line 67 of file netThread.h.

References engine.

FastEcslent::NetThread::NetThread ( Engine eng  )  [inline]

Definition at line 67 of file netThread.h.

References engine.


Member Function Documentation

void FastEcslent::NetThread::runThread (  )  [private]

Definition at line 47 of file netThread.cpp.

References gameTick(), listener, quit, FastEcslent::Sender::run(), FastEcslent::Listener::run(), and sender.

Referenced by getMyIP(), and run().

void FastEcslent::NetThread::sendUnknownEntQueries (  )  [private]

Definition at line 196 of file netThread.cpp.

References FastEcslent::Sender::addPriorityMessage(), FastEcslent::NetCommon::getCurrentTimeLong(), netCommon, FastEcslent::ReqInfoSize, FastEcslent::REQUESTINFOMESSAGETYPE, sender, and unknows.

Referenced by sendCommands().

void FastEcslent::NetThread::run (  ) 

Definition at line 42 of file netThread.cpp.

References engine, FastEcslent::Engine::instanceId, netThread, and runThread().

Referenced by getMyIP(), and FastEcslent::Engine::loadLevel().

void FastEcslent::NetThread::init ( void   ) 

Reimplemented in FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, and FastEcslent::Server.

Definition at line 23 of file netThread.cpp.

References engine, getCurrentTime(), FastEcslent::NetCommon::getMyIP(), FastEcslent::Sender::init(), FastEcslent::Listener::init(), insideLobby, FastEcslent::Engine::instanceId, Options::isServer, listener, myIP, myIPAddress, netCommon, Options::networkPort, FastEcslent::Engine::options, quit, sender, sleepTime, startTime, and TICK_SLEEP_TIME.

Referenced by getMyIP(), and FastEcslent::Engine::init().

void FastEcslent::NetThread::stopAndJoin (  ) 

Definition at line 528 of file netThread.cpp.

References FastEcslent::Sender::join(), FastEcslent::Sender::kill(), FastEcslent::Listener::kill(), listener, netThread, sender, FastEcslent::Listener::stop(), FastEcslent::Sender::stop(), and stop().

Referenced by FastEcslent::Engine::releaseLevel().

void FastEcslent::NetThread::stop (  ) 

Definition at line 523 of file netThread.cpp.

References quit.

Referenced by stopAndJoin().

int FastEcslent::NetThread::getNetId ( Entity ent  ) 

Definition at line 552 of file netThread.cpp.

References netIdToEntMap.

Referenced by FastEcslent::NetAspect::requestMineralPatchID(), and FastEcslent::NetAspect::updateServer().

FastEcslent::Entity * FastEcslent::NetThread::getEntityFromNetId ( int  entID  ) 

Definition at line 560 of file netThread.cpp.

References netIdToEntMap.

Referenced by FastEcslent::NetAspect::tick(), and updateMineralPatchID().

void FastEcslent::NetThread::clientTick (  ) 

Definition at line 243 of file netThread.cpp.

References handleServerMessages(), sendCommands(), and sleepTime.

Referenced by gameTick(), and getMyIP().

void FastEcslent::NetThread::handleServerMessages (  ) 

Definition at line 283 of file netThread.cpp.

References createEnt(), createEntFromClientRes(), FastEcslent::CREATEENTITYRESPONSEMESSAGETYPE, FastEcslent::Listener::dequeMessage(), FastEcslent::INFOMESSAGETYPE, listener, FastEcslent::MINERALPATCHIDRESPONSETYPE, squelchEnts(), FastEcslent::SQUELCHMESSAGETYPE, FastEcslent::STATEMESSAGETYPE, updateMineralPatchID(), and updateState().

Referenced by clientTick().

void FastEcslent::NetThread::updateState ( Message m  ) 

Definition at line 302 of file netThread.cpp.

References FastEcslent::StateSize, and updateState().

void FastEcslent::NetThread::updateState ( State s  ) 

Definition at line 314 of file netThread.cpp.

References FastEcslent::Entity::getAspect(), FastEcslent::NET, FastEcslent::Entity::netAspect, netIdToEntMap, unknows, and FastEcslent::NetAspect::updateQueue.

void FastEcslent::NetThread::createEntFromClientReq ( int  builderid,
FastEcslent::EntityType  ent,
Ogre::Vector3  pos 
)

Definition at line 332 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::CREATEENTITYREQUESTMESSAGETYPE, FastEcslent::CreateEntityRequestSize, engine, FastEcslent::NetCommon::getCurrentTimeLong(), netCommon, FastEcslent::Engine::options, Options::player, sender, and Options::side.

Referenced by FastEcslent::NetAspect::createEntity(), handleMessage(), and FastEcslent::Builder::startBuildingNextEntity().

void FastEcslent::NetThread::createEntFromClientReq ( Message m  ) 

Definition at line 357 of file netThread.cpp.

References createEntFromClientRes(), FastEcslent::EntityMgr::createEntityForPlayerAndSide(), FastEcslent::CreateEntityRequestSize, engine, FastEcslent::Entity::entityId, FastEcslent::Engine::entityMgr, and FastEcslent::Identity::id.

void FastEcslent::NetThread::createEntFromClientRes ( int  builderid,
int  builtid 
)

Definition at line 365 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::CREATEENTITYRESPONSEMESSAGETYPE, FastEcslent::CreateEntityResponseSize, FastEcslent::NetCommon::getCurrentTimeLong(), netCommon, and sender.

Referenced by createEntFromClientReq(), and handleServerMessages().

void FastEcslent::NetThread::createEntFromClientRes ( Message m  ) 

Definition at line 384 of file netThread.cpp.

References FastEcslent::CreateEntityResponseSize, engine, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::getEntityById(), FastEcslent::Entity::netAspect, and FastEcslent::NetAspect::setEntityBeingBuilt().

void FastEcslent::NetThread::createEnt ( Message m  ) 

Definition at line 393 of file netThread.cpp.

References FastEcslent::InfoSize.

Referenced by handleServerMessages().

void FastEcslent::NetThread::createEnt ( Info info  ) 

Definition at line 403 of file netThread.cpp.

References FastEcslent::Entity::ai, FastEcslent::EntityMgr::createEntityForPlayerAndSide(), FastEcslent::GameMgr::currentEntityCounts, FastEcslent::Entity::depth, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, engine, FastEcslent::Engine::entityMgr, FastEcslent::Entity::entityType, FastEcslent::GameMgr::entTypeData, FastEcslent::Engine::gameMgr, FastEcslent::Entity::hitpoints, FastEcslent::Entity::length, FastEcslent::Entity::maxSpeed, netEntToIdMap, netIdToEntMap, FastEcslent::NETSLAVE, FastEcslent::GameMgr::playerEnts, FastEcslent::GameMgr::playerNEnts, FastEcslent::GameMgr::pop, FastEcslent::UnitAI::state, FastEcslent::GameEntTypeProperties::supply, FastEcslent::Entity::timeLeftToBirth, FastEcslent::Entity::uiname, unknows, FastEcslent::Entity::vel, and FastEcslent::Entity::width.

void FastEcslent::NetThread::sendCommands (  ) 

Definition at line 137 of file netThread.cpp.

References combineCommandsIntoNetMessage(), combineSquelchesIntoNetMessage(), and sendUnknownEntQueries().

Referenced by clientTick(), and getMyIP().

void FastEcslent::NetThread::sendCommand ( int  id,
float  dh,
float  ds 
)

Definition at line 220 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::COMMANDENTITYMESSAGETYPE, FastEcslent::CommandEntitySize, getCurrentTime(), sender, and startTime.

void FastEcslent::NetThread::squelchEnts ( Message m  ) 

Definition at line 449 of file netThread.cpp.

References netIdToEntMap, and FastEcslent::SquelchEntitySize.

Referenced by handleServerMessages().

void FastEcslent::NetThread::serverTick (  ) 

Definition at line 237 of file netThread.cpp.

References handleClientMessages(), serve(), and sleepTime.

Referenced by gameTick(), and getMyIP().

void FastEcslent::NetThread::handleClientMessages (  ) 

Definition at line 272 of file netThread.cpp.

References FastEcslent::Listener::dequeMessage(), handleMessage(), listener, and FastEcslent::STATEMESSAGETYPE.

Referenced by serverTick().

void FastEcslent::NetThread::handleMessage ( Message m  ) 

Definition at line 460 of file netThread.cpp.

References FastEcslent::COMMANDENTITYMESSAGETYPE, createEntFromClientReq(), FastEcslent::CREATEENTITYREQUESTMESSAGETYPE, FastEcslent::MINERALPATCHIDREQUESTTYPE, propagateCommand(), FastEcslent::REQUESTINFOMESSAGETYPE, responseMineralPatchID(), sendInfo(), and FastEcslent::SQUELCHMESSAGETYPE.

Referenced by handleClientMessages().

void FastEcslent::NetThread::sendInfo ( Message m  ) 

Definition at line 483 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), engine, FastEcslent::Entity::entityId, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::ents, FastEcslent::fillInfoFromEnt(), getCurrentTime(), FastEcslent::HeaderSize, FastEcslent::Identity::id, FastEcslent::InfoSize, FastEcslent::makeMessageWithInfoHeader(), FastEcslent::printMessageData(), FastEcslent::printMessageHeader(), sender, and startTime.

Referenced by handleMessage().

void FastEcslent::NetThread::propagateCommand ( Message m  ) 

Definition at line 507 of file netThread.cpp.

References FastEcslent::Entity::ai, FastEcslent::CommandEntitySize, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, engine, FastEcslent::Entity::entityClass, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::getEntityById(), FastEcslent::NETSLAVE, FastEcslent::UnitAI::state, and FastEcslent::SURFACE.

Referenced by handleMessage().

void FastEcslent::NetThread::combineCommandsIntoNetMessage (  ) 

Definition at line 144 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::COMMANDENTITYMESSAGETYPE, FastEcslent::CommandEntitySize, commandQueue, FastEcslent::NetCommon::getCurrentTimeLong(), netCommon, and sender.

Referenced by sendCommands().

void FastEcslent::NetThread::combineSquelchesIntoNetMessage (  ) 

Definition at line 165 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::NetCommon::getCurrentTimeLong(), netCommon, sender, FastEcslent::SquelchEntitySize, FastEcslent::SQUELCHMESSAGETYPE, and squelchQueue.

Referenced by sendCommands().

void FastEcslent::NetThread::sendLobbyClientResponse ( std::string  clientIP,
int  port,
int  side,
int  player 
)

void FastEcslent::NetThread::lobbyStart (  ) 

void FastEcslent::NetThread::addCommand ( CommandEntity m  ) 

Definition at line 187 of file netThread.cpp.

References commandQueue.

Referenced by FastEcslent::NetAspect::updateServer().

void FastEcslent::NetThread::addSquelch ( SquelchEntity m  ) 

Definition at line 191 of file netThread.cpp.

References squelchQueue.

Referenced by FastEcslent::NetAspect::updateServer().

void FastEcslent::NetThread::requestMineralPatchID ( int  mineralid  ) 

Definition at line 568 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), FastEcslent::NetCommon::getCurrentTimeLong(), FastEcslent::MineralPatchIDRequestSize, FastEcslent::MINERALPATCHIDREQUESTTYPE, netCommon, and sender.

Referenced by FastEcslent::NetAspect::requestMineralPatchID().

void FastEcslent::NetThread::responseMineralPatchID ( Message m  ) 

Definition at line 586 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), engine, FastEcslent::Entity::entityId, FastEcslent::Engine::entityMgr, FastEcslent::Entity::entityType, FastEcslent::NetCommon::getCurrentTimeLong(), FastEcslent::EntityMgr::getEntityById(), FastEcslent::Identity::id, FastEcslent::Minerals::mineralPatchId, FastEcslent::MineralPatchIDRequestSize, FastEcslent::MineralPatchIDResponseSize, FastEcslent::MINERALPATCHIDRESPONSETYPE, FastEcslent::MINERALS, netCommon, and sender.

Referenced by handleMessage().

void FastEcslent::NetThread::updateMineralPatchID ( Message m  ) 

Definition at line 613 of file netThread.cpp.

References FastEcslent::Entity::entityType, getEntityFromNetId(), FastEcslent::Minerals::mineralPatchId, FastEcslent::MineralPatchIDResponseSize, and FastEcslent::MINERALS.

Referenced by handleServerMessages().

void FastEcslent::NetThread::serve (  ) 

Definition at line 249 of file netThread.cpp.

References FastEcslent::Sender::addMessage(), engine, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::ents, FastEcslent::fillStateFromEnt(), FastEcslent::NetCommon::getCurrentTimeLong(), FastEcslent::makeMessageWithStateHeader(), FastEcslent::EntityMgr::nEnts, netCommon, sender, and FastEcslent::StateSize.

Referenced by serverTick().

void FastEcslent::NetThread::gameTick (  ) 

Definition at line 56 of file netThread.cpp.

References clientTick(), engine, FastEcslent::Engine::gameState, Options::isServer, FastEcslent::LOBBY, FastEcslent::Engine::options, and serverTick().

Referenced by runThread().

void FastEcslent::NetThread::runThread (  )  [private]

udp::endpoint FastEcslent::NetThread::getMyIP (  )  [protected]

Definition at line 21 of file netThread.cpp.

References clientTick(), DEBUG, FastEcslent::Entity::depth, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, engine, FastEcslent::Entity::entityId, FastEcslent::Entity::entityType, FastEcslent::fillInfoFromEnt(), FastEcslent::fillStateFromEnt(), getCurrentTime(), FastEcslent::Identity::id, FastEcslent::INFOMESSAGETYPE, FastEcslent::InfoSize, FastEcslent::Sender::init(), FastEcslent::Listener::init(), init(), FastEcslent::Engine::instanceId, Options::isServer, FastEcslent::Entity::length, listener, FastEcslent::makeMessageWithInfoHeader(), FastEcslent::makeMessageWithStateHeader(), FastEcslent::Entity::maxSpeed, FastEcslent::Entity::minSpeed, myIP, netThread, Options::networkPort, FastEcslent::Engine::options, FastEcslent::Entity::pos, quit, FastEcslent::Sender::run(), FastEcslent::Listener::run(), run(), runThread(), sendCommands(), sender, serverSleepTime, serverTick(), startTime, FastEcslent::STATEMESSAGETYPE, FastEcslent::StateSize, FastEcslent::Entity::uiname, updateState(), FastEcslent::Entity::vel, FastEcslent::Entity::width, and FastEcslent::Entity::yaw.

void FastEcslent::NetThread::run (  ) 

void FastEcslent::NetThread::init (  ) 

Reimplemented in FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, and FastEcslent::Server.

void FastEcslent::NetThread::stopAndJoin (  ) 

void FastEcslent::NetThread::stop (  ) 

void FastEcslent::NetThread::clientTick (  ) 

void FastEcslent::NetThread::updateState (  ) 

Definition at line 162 of file netThread.cpp.

Referenced by getMyIP(), handleServerMessages(), and updateState().

void FastEcslent::NetThread::sendCommands (  ) 

void FastEcslent::NetThread::serverTick (  ) 

void FastEcslent::NetThread::handleClientMessages (  ) 

FastEcslent::Message * FastEcslent::NetThread::getMessage (  ) 

Definition at line 215 of file netThread.cpp.

References listener, and FastEcslent::Listener::recBuffer.

void FastEcslent::NetThread::handleMessage ( Message m  ) 

void FastEcslent::NetThread::sendInfo ( Message m  ) 

void FastEcslent::NetThread::serve (  ) 

void FastEcslent::NetThread::runThread (  )  [private]

udp::endpoint FastEcslent::NetThread::getMyIP (  )  [protected]

void FastEcslent::NetThread::run (  ) 

void FastEcslent::NetThread::init (  ) 

Reimplemented in FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, and FastEcslent::Server.

void FastEcslent::NetThread::stopAndJoin (  ) 

void FastEcslent::NetThread::stop (  ) 

void FastEcslent::NetThread::clientTick (  ) 

void FastEcslent::NetThread::updateState (  ) 

void FastEcslent::NetThread::sendCommands (  ) 

void FastEcslent::NetThread::serverTick (  ) 

void FastEcslent::NetThread::handleClientMessages (  ) 

Message* FastEcslent::NetThread::getMessage (  ) 

void FastEcslent::NetThread::handleMessage ( Message m  ) 

void FastEcslent::NetThread::sendInfo ( Message m  ) 

void FastEcslent::NetThread::serve (  ) 

void FastEcslent::NetThread::runThread (  )  [private]

void FastEcslent::NetThread::sendUnknownEntQueries (  )  [private]

void FastEcslent::NetThread::run (  ) 

void FastEcslent::NetThread::init (  ) 

Reimplemented in FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, and FastEcslent::Server.

void FastEcslent::NetThread::stopAndJoin (  ) 

void FastEcslent::NetThread::stop (  ) 

int FastEcslent::NetThread::getNetId ( Entity ent  ) 

void FastEcslent::NetThread::clientTick (  ) 

void FastEcslent::NetThread::handleServerMessages (  ) 

void FastEcslent::NetThread::updateState ( Message m  ) 

void FastEcslent::NetThread::updateState ( State s  ) 

void FastEcslent::NetThread::createEnt ( Message m  ) 

void FastEcslent::NetThread::createEnt ( Info info  ) 

void FastEcslent::NetThread::sendCommands (  ) 

void FastEcslent::NetThread::sendCommand ( int  id,
float  dh,
float  ds 
)

void FastEcslent::NetThread::squelchEnts ( Message m  ) 

void FastEcslent::NetThread::serverTick (  ) 

void FastEcslent::NetThread::handleClientMessages (  ) 

void FastEcslent::NetThread::handleMessage ( Message m  ) 

void FastEcslent::NetThread::sendInfo ( Message m  ) 

void FastEcslent::NetThread::propagateCommand ( Message m  ) 

void FastEcslent::NetThread::combineCommandsIntoNetMessage (  ) 

void FastEcslent::NetThread::combineSquelchesIntoNetMessage (  ) 

void FastEcslent::NetThread::sendLobbyClientResponse ( std::string  clientIP,
int  port,
int  side,
int  player 
)

void FastEcslent::NetThread::lobbyStart (  ) 

void FastEcslent::NetThread::addCommand ( CommandEntity m  ) 

void FastEcslent::NetThread::addSquelch ( SquelchEntity m  ) 

void FastEcslent::NetThread::serve (  ) 

void FastEcslent::NetThread::gameTick (  ) 

void FastEcslent::NetThread::runThread (  )  [private]

void FastEcslent::NetThread::sendUnknownEntQueries (  )  [private]

void FastEcslent::NetThread::run (  ) 

void FastEcslent::NetThread::init (  ) 

Reimplemented in FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, FastEcslent::Server, and FastEcslent::Server.

void FastEcslent::NetThread::stopAndJoin (  ) 

void FastEcslent::NetThread::stop (  ) 

int FastEcslent::NetThread::getNetId ( Entity ent  ) 

void FastEcslent::NetThread::clientTick (  ) 

void FastEcslent::NetThread::handleServerMessages (  ) 

void FastEcslent::NetThread::updateState ( Message m  ) 

void FastEcslent::NetThread::updateState ( State s  ) 

void FastEcslent::NetThread::createEnt ( Message m  ) 

void FastEcslent::NetThread::createEnt ( Info info  ) 

void FastEcslent::NetThread::sendCommands (  ) 

void FastEcslent::NetThread::sendCommand ( int  id,
float  dh,
float  ds 
)

void FastEcslent::NetThread::squelchEnts ( Message m  ) 

void FastEcslent::NetThread::serverTick (  ) 

void FastEcslent::NetThread::handleClientMessages (  ) 

void FastEcslent::NetThread::handleMessage ( Message m  ) 

void FastEcslent::NetThread::sendInfo ( Message m  ) 

void FastEcslent::NetThread::propagateCommand ( Message m  ) 

void FastEcslent::NetThread::combineCommandsIntoNetMessage (  ) 

void FastEcslent::NetThread::combineSquelchesIntoNetMessage (  ) 

void FastEcslent::NetThread::sendLobbyClientResponse ( std::string  clientIP,
int  port,
int  side,
int  player 
)

void FastEcslent::NetThread::lobbyStart (  ) 

void FastEcslent::NetThread::addCommand ( CommandEntity m  ) 

void FastEcslent::NetThread::addSquelch ( SquelchEntity m  ) 

void FastEcslent::NetThread::serve (  ) 

void FastEcslent::NetThread::gameTick (  ) 


Member Data Documentation

boost::thread FastEcslent::NetThread::netThread [private]

Definition at line 38 of file netThread.h.

Referenced by getMyIP(), run(), and stopAndJoin().

int FastEcslent::NetThread::TICK_SLEEP_TIME [private]

Definition at line 39 of file netThread.h.

Referenced by init().

ptime FastEcslent::NetThread::startTime [private]

Definition at line 41 of file netThread.h.

Referenced by getMyIP(), init(), sendCommand(), and sendInfo().

bool FastEcslent::NetThread::quit [private]

Definition at line 42 of file netThread.h.

Referenced by getMyIP(), init(), runThread(), and stop().

std::map<int, State*> FastEcslent::NetThread::unknows [private]

Definition at line 44 of file netThread.h.

Referenced by createEnt(), sendUnknownEntQueries(), and updateState().

std::map<int, Entity*> FastEcslent::NetThread::netIdToEntMap [private]

Definition at line 45 of file netThread.h.

Referenced by createEnt(), getEntityFromNetId(), getNetId(), squelchEnts(), and updateState().

std::map<Entity*, int> FastEcslent::NetThread::netEntToIdMap [private]

Definition at line 46 of file netThread.h.

Referenced by createEnt().

std::deque<CommandEntity*> FastEcslent::NetThread::commandQueue [private]

Definition at line 48 of file netThread.h.

Referenced by addCommand(), and combineCommandsIntoNetMessage().

std::deque<SquelchEntity*> FastEcslent::NetThread::squelchQueue [private]

Definition at line 49 of file netThread.h.

Referenced by addSquelch(), and combineSquelchesIntoNetMessage().

udp::endpoint FastEcslent::NetThread::myIP [private]

Definition at line 51 of file netThread.h.

Referenced by getMyIP(), and init().

NetCommon* FastEcslent::NetThread::netCommon [private]

Definition at line 52 of file netThread.h.

Referenced by combineCommandsIntoNetMessage(), combineSquelchesIntoNetMessage(), createEntFromClientReq(), createEntFromClientRes(), init(), requestMineralPatchID(), responseMineralPatchID(), sendUnknownEntQueries(), and serve().

Engine* FastEcslent::NetThread::engine

Definition at line 55 of file netThread.h.

Referenced by createEnt(), createEntFromClientReq(), createEntFromClientRes(), gameTick(), getMyIP(), init(), NetThread(), propagateCommand(), responseMineralPatchID(), run(), sendInfo(), and serve().

Listener* FastEcslent::NetThread::listener

Definition at line 57 of file netThread.h.

Referenced by getMessage(), getMyIP(), handleClientMessages(), handleServerMessages(), init(), runThread(), and stopAndJoin().

Sender* FastEcslent::NetThread::sender

Definition at line 58 of file netThread.h.

Referenced by combineCommandsIntoNetMessage(), combineSquelchesIntoNetMessage(), createEntFromClientReq(), createEntFromClientRes(), getMyIP(), init(), requestMineralPatchID(), responseMineralPatchID(), runThread(), sendCommand(), sendInfo(), sendUnknownEntQueries(), serve(), and stopAndJoin().

bool FastEcslent::NetThread::insideLobby

Definition at line 60 of file netThread.h.

Referenced by init().

bool FastEcslent::NetThread::isServer

Definition at line 61 of file netThread.h.

int FastEcslent::NetThread::port

Definition at line 62 of file netThread.h.

std::string FastEcslent::NetThread::myIPAddress

Definition at line 64 of file netThread.h.

Referenced by init().

boost::posix_time::milliseconds* FastEcslent::NetThread::sleepTime

Definition at line 65 of file netThread.h.

Referenced by clientTick(), init(), and serverTick().

boost::posix_time::milliseconds* FastEcslent::NetThread::serverSleepTime [private]

Definition at line 37 of file netThread.h.

Referenced by getMyIP().

Engine* FastEcslent::NetThread::engine

Definition at line 49 of file netThread.h.

Listener* FastEcslent::NetThread::listener

Definition at line 56 of file netThread.h.

Sender* FastEcslent::NetThread::sender

Definition at line 57 of file netThread.h.

boost::posix_time::milliseconds* FastEcslent::NetThread::serverSleepTime [private]

Definition at line 37 of file netThread.h.

Engine* FastEcslent::NetThread::engine

Definition at line 49 of file netThread.h.

Listener* FastEcslent::NetThread::listener

Definition at line 56 of file netThread.h.

Sender* FastEcslent::NetThread::sender

Definition at line 57 of file netThread.h.

std::map<int, State*> FastEcslent::NetThread::unknows [private]

Definition at line 44 of file netThread.h.

std::map<int, Entity*> FastEcslent::NetThread::netIdToEntMap [private]

Definition at line 45 of file netThread.h.

std::map<Entity*, int> FastEcslent::NetThread::netEntToIdMap [private]

Definition at line 46 of file netThread.h.

std::deque<CommandEntity*> FastEcslent::NetThread::commandQueue [private]

Definition at line 48 of file netThread.h.

std::deque<SquelchEntity*> FastEcslent::NetThread::squelchQueue [private]

Definition at line 49 of file netThread.h.

NetCommon* FastEcslent::NetThread::netCommon [private]

Definition at line 52 of file netThread.h.

Engine* FastEcslent::NetThread::engine

Definition at line 55 of file netThread.h.

Listener* FastEcslent::NetThread::listener

Definition at line 57 of file netThread.h.

Sender* FastEcslent::NetThread::sender

Definition at line 58 of file netThread.h.

boost::posix_time::milliseconds* FastEcslent::NetThread::sleepTime

Definition at line 65 of file netThread.h.

std::map<int, State*> FastEcslent::NetThread::unknows [private]

Definition at line 44 of file netThread.h.

std::map<int, Entity*> FastEcslent::NetThread::netIdToEntMap [private]

Definition at line 45 of file netThread.h.

std::map<Entity*, int> FastEcslent::NetThread::netEntToIdMap [private]

Definition at line 46 of file netThread.h.

std::deque<CommandEntity*> FastEcslent::NetThread::commandQueue [private]

Definition at line 48 of file netThread.h.

std::deque<SquelchEntity*> FastEcslent::NetThread::squelchQueue [private]

Definition at line 49 of file netThread.h.

NetCommon* FastEcslent::NetThread::netCommon [private]

Definition at line 52 of file netThread.h.

Engine* FastEcslent::NetThread::engine

Definition at line 55 of file netThread.h.

Listener* FastEcslent::NetThread::listener

Definition at line 57 of file netThread.h.

Sender* FastEcslent::NetThread::sender

Definition at line 58 of file netThread.h.

boost::posix_time::milliseconds* FastEcslent::NetThread::sleepTime

Definition at line 65 of file netThread.h.


The documentation for this class was generated from the following files:
Generated on Fri Dec 13 14:54:21 2013 for FastECSLent by  doxygen 1.5.4