FastEcslent::Engine Class Reference

#include <engine.h>

List of all members.

Public Member Functions

 Engine (int instId, Options opts)
 ~Engine ()
void showMenu ()
void constructManagers ()
void init ()
void loadLevel ()
void releaseLevel ()
void run ()
void stop ()
 Engine (int instId, Options opts)
 ~Engine ()
void showMenu ()
void constructManagers ()
void init ()
void loadLevel ()
void releaseLevel ()
void run ()
void stop ()
 Engine (int instId, Options opts)
 ~Engine ()
void showMenu ()
void constructManagers ()
void init ()
void loadLevel ()
void releaseLevel ()
void run ()
void stop ()
 Engine (int instId, Options opts)
 ~Engine ()
void showMenu ()
void constructManagers ()
void init ()
void loadLevel ()
void releaseLevel ()
void run ()
void stop ()
 Engine (int instId, Options opts)
 ~Engine ()
void showMenu ()
void constructManagers ()
void init ()
void loadLevel ()
void releaseLevel ()
void run ()
void stop ()

Public Attributes

Options options
int instanceId
int rands [1000]
bool quit
volatile GameState gameState
boost::mutex quitLock
EntityMgrentityMgr
SelectionMgrselectionMgr
WeaponMgrweaponMgr
GameMgrgameMgr
DistanceMgrdistanceMgr
GroupMgrgroupMgr
NetThreadnet
GfxThreadgfx
EntityMgrentityMgr
SelectionMgrselectionMgr
WeaponMgrweaponMgr
GameMgrgameMgr
DistanceMgrdistanceMgr
GroupMgrgroupMgr
NetThreadnet
GfxThreadgfx
EntityMgrentityMgr
SelectionMgrselectionMgr
WeaponMgrweaponMgr
GameMgrgameMgr
DistanceMgrdistanceMgr
GroupMgrgroupMgr
NetThreadnet
GfxThreadgfx
EntityMgrentityMgr
SelectionMgrselectionMgr
WeaponMgrweaponMgr
GameMgrgameMgr
DistanceMgrdistanceMgr
GroupMgrgroupMgr
NetThreadnet
GfxThreadgfx
EntityMgrentityMgr
SelectionMgrselectionMgr
WeaponMgrweaponMgr
GameMgrgameMgr
DistanceMgrdistanceMgr
GroupMgrgroupMgr
NetThreadnet
GfxThreadgfx

Private Member Functions

void tickAll (float dt)
void runTests ()
void tickAll (float dt)
void runTests ()
void tickAll (float dt)
void runTests ()
void tickAll (float dt)
void runTests ()
void tickAll (float dt)
void runTests ()

Private Attributes

FastEcslent::MilliSecondTimerselectionTimer
FastEcslent::MilliSecondTimerdistanceTimer
boost::posix_time::milliseconds * sleepInterval
FastEcslent::MilliSecondTimerselectionTimer
FastEcslent::MilliSecondTimerdistanceTimer
FastEcslent::MilliSecondTimerselectionTimer
FastEcslent::MilliSecondTimerdistanceTimer
FastEcslent::MilliSecondTimerselectionTimer
FastEcslent::MilliSecondTimerdistanceTimer
boost::posix_time::milliseconds * sleepInterval
FastEcslent::MilliSecondTimerselectionTimer
FastEcslent::MilliSecondTimerdistanceTimer
boost::posix_time::milliseconds * sleepInterval


Detailed Description

Definition at line 36 of file engine.h.


Constructor & Destructor Documentation

FastEcslent::Engine::Engine ( int  instId,
Options  opts 
)

Definition at line 20 of file engine.cpp.

References FastEcslent::GAME, gameState, instanceId, options, and quit.

FastEcslent::Engine::~Engine (  ) 

Definition at line 27 of file engine.cpp.

References distanceMgr, entityMgr, gameMgr, groupMgr, and selectionMgr.

FastEcslent::Engine::Engine ( int  instId,
Options  opts 
) [inline]

Definition at line 64 of file engine.h.

References instanceId, options, and quit.

FastEcslent::Engine::~Engine (  )  [inline]

Definition at line 70 of file engine.h.

References distanceMgr, entityMgr, gameMgr, groupMgr, and selectionMgr.

FastEcslent::Engine::Engine ( int  instId,
Options  opts 
) [inline]

Definition at line 64 of file engine.h.

References instanceId, options, and quit.

FastEcslent::Engine::~Engine (  )  [inline]

Definition at line 70 of file engine.h.

References distanceMgr, entityMgr, gameMgr, groupMgr, and selectionMgr.

FastEcslent::Engine::Engine ( int  instId,
Options  opts 
) [inline]

Definition at line 76 of file engine.h.

References FastEcslent::GAME, gameState, instanceId, options, and quit.

FastEcslent::Engine::~Engine (  )  [inline]

Definition at line 83 of file engine.h.

References distanceMgr, entityMgr, gameMgr, groupMgr, and selectionMgr.

FastEcslent::Engine::Engine ( int  instId,
Options  opts 
) [inline]

Definition at line 76 of file engine.h.

References FastEcslent::GAME, gameState, instanceId, options, and quit.

FastEcslent::Engine::~Engine (  )  [inline]

Definition at line 83 of file engine.h.

References distanceMgr, entityMgr, gameMgr, groupMgr, and selectionMgr.


Member Function Documentation

void FastEcslent::Engine::tickAll ( float  dt  )  [private]

Definition at line 108 of file engine.cpp.

References distanceMgr, entityMgr, gameMgr, groupMgr, options, selectionMgr, Options::tacticalAI, FastEcslent::GroupMgr::tick(), FastEcslent::DistanceMgr::tick(), FastEcslent::GameMgr::tick(), FastEcslent::WeaponMgr::tick(), FastEcslent::SelectionMgr::tick(), FastEcslent::EntityMgr::tick(), and weaponMgr.

Referenced by run().

void FastEcslent::Engine::runTests (  )  [private]

Definition at line 168 of file engine.cpp.

References distanceMgr, distanceTimer, FastEcslent::DistanceMgr::dumpAll(), FastEcslent::Entity::entityId, entityMgr, FastEcslent::SelectionMgr::getNSelectedEnts(), FastEcslent::SelectionMgr::getSelectedEnts(), FastEcslent::MilliSecondTimer::hasFired(), FastEcslent::Identity::id, FastEcslent::Entity::isSelected, FastEcslent::EntityMgr::nEnts, options, selectionMgr, selectionTimer, Options::tacticalAI, and FastEcslent::SelectionMgr::unselect().

void FastEcslent::Engine::showMenu (  ) 

Definition at line 64 of file engine.cpp.

Referenced by main().

void FastEcslent::Engine::constructManagers (  ) 

Definition at line 35 of file engine.cpp.

References distanceMgr, Options::enableGfx, Options::enableNetworking, entityMgr, gameMgr, gfx, groupMgr, net, options, selectionMgr, Options::tacticalAI, and weaponMgr.

Referenced by main().

void FastEcslent::Engine::init (  ) 

Definition at line 54 of file engine.cpp.

References distanceMgr, distanceTimer, Options::enableGfx, Options::enableNetworking, entityMgr, gameMgr, gameState, gfx, groupMgr, FastEcslent::GfxThread::init(), FastEcslent::NetThread::init(), FastEcslent::GroupMgr::init(), FastEcslent::DistanceMgr::init(), FastEcslent::GameMgr::init(), FastEcslent::WeaponMgr::init(), FastEcslent::SelectionMgr::init(), FastEcslent::EntityMgr::init(), FastEcslent::LOBBY, net, options, selectionMgr, selectionTimer, sleepInterval, Options::tacticalAI, and weaponMgr.

Referenced by main().

void FastEcslent::Engine::loadLevel (  ) 

Definition at line 79 of file engine.cpp.

References Options::enableGfx, Options::enableNetworking, gameMgr, gfx, FastEcslent::GfxThread::gimPtr, FastEcslent::GameMgr::loadLevel(), FastEcslent::LOBBY, net, options, FastEcslent::GfxThread::run(), FastEcslent::NetThread::run(), and sleepInterval.

Referenced by main().

void FastEcslent::Engine::releaseLevel (  ) 

Definition at line 94 of file engine.cpp.

References Options::enableGfx, Options::enableNetworking, gfx, FastEcslent::GfxThread::join(), net, options, and FastEcslent::NetThread::stopAndJoin().

Referenced by main().

void FastEcslent::Engine::run (  ) 

Definition at line 125 of file engine.cpp.

References FastEcslent::EntityMgr::dumpOne(), entityMgr, getCurrentTime(), options, quit, Options::speedup, and tickAll().

Referenced by main().

void FastEcslent::Engine::stop (  ) 

Definition at line 102 of file engine.cpp.

Referenced by main().

void FastEcslent::Engine::tickAll ( float  dt  )  [private]

void FastEcslent::Engine::runTests (  )  [private]

void FastEcslent::Engine::showMenu (  ) 

void FastEcslent::Engine::constructManagers (  ) 

void FastEcslent::Engine::init (  ) 

void FastEcslent::Engine::loadLevel (  ) 

void FastEcslent::Engine::releaseLevel (  ) 

void FastEcslent::Engine::run (  ) 

void FastEcslent::Engine::stop (  ) 

void FastEcslent::Engine::tickAll ( float  dt  )  [private]

void FastEcslent::Engine::runTests (  )  [private]

void FastEcslent::Engine::showMenu (  ) 

void FastEcslent::Engine::constructManagers (  ) 

void FastEcslent::Engine::init (  ) 

void FastEcslent::Engine::loadLevel (  ) 

void FastEcslent::Engine::releaseLevel (  ) 

void FastEcslent::Engine::run (  ) 

void FastEcslent::Engine::stop (  ) 

void FastEcslent::Engine::tickAll ( float  dt  )  [private]

void FastEcslent::Engine::runTests (  )  [private]

void FastEcslent::Engine::showMenu (  ) 

void FastEcslent::Engine::constructManagers (  ) 

void FastEcslent::Engine::init (  ) 

void FastEcslent::Engine::loadLevel (  ) 

void FastEcslent::Engine::releaseLevel (  ) 

void FastEcslent::Engine::run (  ) 

void FastEcslent::Engine::stop (  ) 

void FastEcslent::Engine::tickAll ( float  dt  )  [private]

void FastEcslent::Engine::runTests (  )  [private]

void FastEcslent::Engine::showMenu (  ) 

void FastEcslent::Engine::constructManagers (  ) 

void FastEcslent::Engine::init (  ) 

void FastEcslent::Engine::loadLevel (  ) 

void FastEcslent::Engine::releaseLevel (  ) 

void FastEcslent::Engine::run (  ) 

void FastEcslent::Engine::stop (  ) 


Member Data Documentation

FastEcslent::MilliSecondTimer* FastEcslent::Engine::selectionTimer [private]

Definition at line 42 of file engine.h.

Referenced by init(), and runTests().

FastEcslent::MilliSecondTimer* FastEcslent::Engine::distanceTimer [private]

Definition at line 43 of file engine.h.

Referenced by init(), and runTests().

boost::posix_time::milliseconds* FastEcslent::Engine::sleepInterval [private]

Definition at line 47 of file engine.h.

Referenced by init(), and loadLevel().

Options FastEcslent::Engine::options

Definition at line 51 of file engine.h.

Referenced by OgreGFX::LobbyMgr::buttonHit(), OgreGFX::LobbyMgr::checkBoxToggled(), FastEcslent::NetLobby::clientSwap(), OgreGFX::LobbyMgr::configureGame(), constructManagers(), FastEcslent::NetThread::createEntFromClientReq(), Engine(), OgreGFX::WidgetMgr::frameRenderingQueued(), FastEcslent::NetThread::gameTick(), FastEcslent::NetThread::getMyIP(), OgreGFX::LobbyMgr::handleExitButton(), FastEcslent::NetThread::init(), FastEcslent::NetLobby::init(), init(), OgreGFX::LobbyMgr::itemSelected(), OgreGFX::LobbyMgr::loadGame(), FastEcslent::GameMgr::loadLevel(), loadLevel(), OgreGFX::LobbyMgr::loadOptions(), OgreGFX::LobbyMgr::lobbyEnter(), OgreGFX::LobbyMgr::lobbyExit(), FastEcslent::NetLobby::lobbyStart(), OgreGFX::LobbyMgr::refreshServerAndSlots(), releaseLevel(), run(), runTests(), FastEcslent::NetLobby::runThread(), FastEcslent::NetLobby::sendLobbyClientResponse(), FastEcslent::setPotentialMoveForEnt(), FastEcslent::UnitAI::tick(), FastEcslent::NetAspect::tick(), tickAll(), OgreGFX::UIMgr::updateFEEngineWithSelections(), and FastEcslent::GameMgr::WaterCraft().

int FastEcslent::Engine::instanceId

Definition at line 52 of file engine.h.

Referenced by FastEcslent::GroupMgr::createGroup(), Engine(), FastEcslent::NetThread::getMyIP(), FastEcslent::NetThread::init(), FastEcslent::GfxThread::init(), FastEcslent::Entity::print(), and FastEcslent::NetThread::run().

int FastEcslent::Engine::rands

Definition at line 54 of file engine.h.

bool FastEcslent::Engine::quit

Definition at line 56 of file engine.h.

Referenced by Engine(), OgreGFX::GraphicsInteractionManager::frameRenderingQueued(), and run().

volatile GameState FastEcslent::Engine::gameState

Definition at line 59 of file engine.h.

Referenced by Engine(), OgreGFX::LobbyMgr::frameStarted(), FastEcslent::NetThread::gameTick(), OgreGFX::LobbyMgr::init(), init(), and OgreGFX::LobbyMgr::startGame().

boost::mutex FastEcslent::Engine::quitLock

Definition at line 61 of file engine.h.

Referenced by OgreGFX::GraphicsInteractionManager::frameRenderingQueued().

EntityMgr* FastEcslent::Engine::entityMgr

Definition at line 63 of file engine.h.

Referenced by FastEcslent::Builder::cancelEntityBeingBuilt(), OgreGFX::UIMgr::CommandGatherOrPFMove(), OgreGFX::UIMgr::CommandMaintainAttack(), OgreGFX::UIMgr::CommandMove(), OgreGFX::UIMgr::CommandPotentialFieldsMove(), constructManagers(), OgreGFX::GraphicsInteractionManager::copySimState(), OgreSND::SoundMgr::copySoundState(), FastEcslent::NetThread::createEnt(), FastEcslent::NetThread::createEntFromClientReq(), FastEcslent::NetThread::createEntFromClientRes(), FastEcslent::GameMgr::createNEntitiesRadial(), OgreGFX::UIMgr::decorateSelectedEntities(), OgreGFX::UIMgr::drawUnderMouseCircle(), FastEcslent::DistanceMgr::dumpAll(), FastEcslent::DistanceMgr::dumpOne(), FastEcslent::Weapon::getUnitsInRadius(), FastEcslent::Weapon::getUnitsInRectangle(), ThreadTester::go(), OgreGFX::UIMgr::groupFromSelections(), OgreGFX::GraphicsInteractionManager::handleBornEnts(), OgreGFX::UIMgr::handleCommand(), OgreGFX::FEMarineButton::handleMouseEvent(), OgreGFX::FESCVButton::handleMouseEvent(), FastEcslent::Flock::init(), init(), FastEcslent::GameMgr::initMineralPatch(), FastEcslent::DistanceMgr::isColliding(), FastEcslent::GameMgr::makeBaseForSidePlayer(), FastEcslent::BuildStructureFactory::MakeCommand(), OgreGFX::GraphicsInteractionManager::makeInitialEntityNodes(), FastEcslent::GameMgr::notExceedPopCap(), FastEcslent::GameMgr::preReqEntities(), FastEcslent::NetThread::propagateCommand(), FastEcslent::SelectionMgr::resetAll(), FastEcslent::NetThread::responseMineralPatchID(), run(), runTests(), FastEcslent::SelectionMgr::select(), FastEcslent::NetThread::sendInfo(), FastEcslent::NetThread::serve(), FastEcslent::Refinery::setAssociatedOilField(), FastEcslent::Builder::startBuildingNextEntity(), FastEcslent::GameMgr::tester(), FastEcslent::Weapon::tick(), OgreSND::SoundMgr::tick(), FastEcslent::DistanceMgr::tick(), FastEcslent::PotentialMove::tick(), tickAll(), FastEcslent::SelectionMgr::unselect(), FastEcslent::DistanceMgr::wouldCollide(), and ~Engine().

SelectionMgr* FastEcslent::Engine::selectionMgr

Definition at line 64 of file engine.h.

Referenced by OgreGFX::UIMgr::clearSelectionsAndUpdateFEEngine(), constructManagers(), OgreGFX::WidgetMgr::frameRenderingQueued(), OgreGFX::FEMarineButton::handleMouseEvent(), OgreGFX::FESCVButton::handleMouseEvent(), init(), runTests(), FastEcslent::Entity::switchState(), FastEcslent::GameMgr::tester(), tickAll(), OgreGFX::UIMgr::updateFEEngineWithSelections(), and ~Engine().

WeaponMgr* FastEcslent::Engine::weaponMgr

Definition at line 65 of file engine.h.

Referenced by constructManagers(), OgreGFX::UIMgr::decorateSelectedEntities(), OgreGFX::WidgetMgr::frameRenderingQueued(), FastEcslent::Weapon::init(), init(), and tickAll().

GameMgr* FastEcslent::Engine::gameMgr

Definition at line 66 of file engine.h.

Referenced by constructManagers(), FastEcslent::NetThread::createEnt(), FastEcslent::Builder::enqueue(), OgreGFX::WidgetMgr::frameRenderingQueued(), FastEcslent::Gather::gatherTick(), FastEcslent::Entity::init(), init(), loadLevel(), FastEcslent::Gather::moveToEntityTick(), FastEcslent::Entity::switchState(), FastEcslent::Gather::switchState(), tickAll(), and ~Engine().

DistanceMgr* FastEcslent::Engine::distanceMgr

Definition at line 67 of file engine.h.

Referenced by constructManagers(), FastEcslent::Weapon::init(), FastEcslent::Flock::init(), init(), runTests(), FastEcslent::Builder::selectRandPosInRadius(), FastEcslent::PotentialMove::tick(), tickAll(), and ~Engine().

GroupMgr* FastEcslent::Engine::groupMgr

Definition at line 68 of file engine.h.

Referenced by constructManagers(), OgreGFX::UIMgr::groupFromSelections(), init(), tickAll(), and ~Engine().

NetThread* FastEcslent::Engine::net

Definition at line 73 of file engine.h.

Referenced by constructManagers(), FastEcslent::NetAspect::createEntity(), init(), loadLevel(), releaseLevel(), FastEcslent::NetAspect::requestMineralPatchID(), FastEcslent::Builder::startBuildingNextEntity(), FastEcslent::NetAspect::tick(), and FastEcslent::NetAspect::updateServer().

GfxThread* FastEcslent::Engine::gfx

Definition at line 74 of file engine.h.

Referenced by OgreGFX::LobbyMgr::checkBoxToggled(), FastEcslent::NetLobby::clientEnter(), FastEcslent::NetLobby::clientExit(), FastEcslent::NetLobby::clientSwap(), constructManagers(), init(), FastEcslent::NetLobby::joinRequest(), loadLevel(), releaseLevel(), FastEcslent::NetLobby::sendLobbyServerInfo(), FastEcslent::NetLobby::serverExit(), FastEcslent::NetLobby::startByRemote(), and FastEcslent::NetLobby::updateLobbyServer().

FastEcslent::MilliSecondTimer* FastEcslent::Engine::selectionTimer [private]

Definition at line 35 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::distanceTimer [private]

Definition at line 36 of file engine.h.

EntityMgr* FastEcslent::Engine::entityMgr

Definition at line 51 of file engine.h.

SelectionMgr* FastEcslent::Engine::selectionMgr

Definition at line 52 of file engine.h.

WeaponMgr* FastEcslent::Engine::weaponMgr

Definition at line 53 of file engine.h.

GameMgr* FastEcslent::Engine::gameMgr

Definition at line 54 of file engine.h.

DistanceMgr* FastEcslent::Engine::distanceMgr

Definition at line 55 of file engine.h.

GroupMgr* FastEcslent::Engine::groupMgr

Definition at line 56 of file engine.h.

NetThread* FastEcslent::Engine::net

Definition at line 61 of file engine.h.

GfxThread* FastEcslent::Engine::gfx

Definition at line 62 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::selectionTimer [private]

Definition at line 35 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::distanceTimer [private]

Definition at line 36 of file engine.h.

EntityMgr* FastEcslent::Engine::entityMgr

Definition at line 51 of file engine.h.

SelectionMgr* FastEcslent::Engine::selectionMgr

Definition at line 52 of file engine.h.

WeaponMgr* FastEcslent::Engine::weaponMgr

Definition at line 53 of file engine.h.

GameMgr* FastEcslent::Engine::gameMgr

Definition at line 54 of file engine.h.

DistanceMgr* FastEcslent::Engine::distanceMgr

Definition at line 55 of file engine.h.

GroupMgr* FastEcslent::Engine::groupMgr

Definition at line 56 of file engine.h.

NetThread* FastEcslent::Engine::net

Definition at line 61 of file engine.h.

GfxThread* FastEcslent::Engine::gfx

Definition at line 62 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::selectionTimer [private]

Definition at line 42 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::distanceTimer [private]

Definition at line 43 of file engine.h.

boost::posix_time::milliseconds* FastEcslent::Engine::sleepInterval [private]

Definition at line 47 of file engine.h.

EntityMgr* FastEcslent::Engine::entityMgr

Definition at line 63 of file engine.h.

SelectionMgr* FastEcslent::Engine::selectionMgr

Definition at line 64 of file engine.h.

WeaponMgr* FastEcslent::Engine::weaponMgr

Definition at line 65 of file engine.h.

GameMgr* FastEcslent::Engine::gameMgr

Definition at line 66 of file engine.h.

DistanceMgr* FastEcslent::Engine::distanceMgr

Definition at line 67 of file engine.h.

GroupMgr* FastEcslent::Engine::groupMgr

Definition at line 68 of file engine.h.

NetThread* FastEcslent::Engine::net

Definition at line 73 of file engine.h.

GfxThread* FastEcslent::Engine::gfx

Definition at line 74 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::selectionTimer [private]

Definition at line 42 of file engine.h.

FastEcslent::MilliSecondTimer* FastEcslent::Engine::distanceTimer [private]

Definition at line 43 of file engine.h.

boost::posix_time::milliseconds* FastEcslent::Engine::sleepInterval [private]

Definition at line 47 of file engine.h.

EntityMgr* FastEcslent::Engine::entityMgr

Definition at line 63 of file engine.h.

SelectionMgr* FastEcslent::Engine::selectionMgr

Definition at line 64 of file engine.h.

WeaponMgr* FastEcslent::Engine::weaponMgr

Definition at line 65 of file engine.h.

GameMgr* FastEcslent::Engine::gameMgr

Definition at line 66 of file engine.h.

DistanceMgr* FastEcslent::Engine::distanceMgr

Definition at line 67 of file engine.h.

GroupMgr* FastEcslent::Engine::groupMgr

Definition at line 68 of file engine.h.

NetThread* FastEcslent::Engine::net

Definition at line 73 of file engine.h.

GfxThread* FastEcslent::Engine::gfx

Definition at line 74 of file engine.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