FastEcslent::EntityMgr Class Reference

#include <entityMgr.h>

Inheritance diagram for FastEcslent::EntityMgr:

FastEcslent::Mgr FastEcslent::Mgr FastEcslent::Mgr FastEcslent::Mgr FastEcslent::Mgr

List of all members.

Public Member Functions

 EntityMgr (Engine *eng, Options opts)
 EntityMgr ()
void init ()
void tick (double dtime)
void dumpOne (int i)
void dumpAll ()
int addEntityToGame (Entity *ent)
EntitycreateEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE)
EntitycreateEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
EntitycreateEntityNow (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
bool cancelGestatingEntity (Entity *ent)
bool preReqExists (EntityType etype)
bool notExceedPopCap (Identity entId)
EntitygetEntityById (int id)
 EntityMgr (Engine *eng, Options opts)
 EntityMgr ()
void init ()
void tick (double dtime)
void dumpOne (int i)
void dumpAll ()
int addEntityToGame (Entity *ent)
EntitycreateEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE)
EntitycreateEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
EntitycreateEntityNow (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
bool cancelGestatingEntity (Entity *ent)
bool preReqExists (EntityType etype)
bool notExceedPopCap (Identity entId)
 EntityMgr (Engine *eng, Options opts)
 EntityMgr ()
void init ()
void tick (double dtime)
void dumpOne (int i)
void dumpAll ()
int addEntityToGame (Entity *ent)
EntitycreateEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE)
EntitycreateEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
EntitycreateEntityNow (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
bool cancelGestatingEntity (Entity *ent)
bool preReqExists (EntityType etype)
bool notExceedPopCap (Identity entId)
 EntityMgr (Engine *eng, Options opts)
 EntityMgr ()
void init ()
void tick (double dtime)
void dumpOne (int i)
void dumpAll ()
int addEntityToGame (Entity *ent)
EntitycreateEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE)
EntitycreateEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
EntitycreateEntityNow (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
bool cancelGestatingEntity (Entity *ent)
bool preReqExists (EntityType etype)
bool notExceedPopCap (Identity entId)
EntitygetEntityById (int id)
 EntityMgr (Engine *eng, Options opts)
 EntityMgr ()
void init ()
void tick (double dtime)
void dumpOne (int i)
void dumpAll ()
int addEntityToGame (Entity *ent)
EntitycreateEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE)
EntitycreateEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
EntitycreateEntityNow (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
bool cancelGestatingEntity (Entity *ent)
bool preReqExists (EntityType etype)
bool notExceedPopCap (Identity entId)
EntitygetEntityById (int id)

Public Attributes

Entityents [MaxEnts]
std::string Meshes [6]
Options options
int nEnts
Entityents [MaxEnts]
Entityents [MaxEnts]
Entityents [MaxEnts]
Entityents [MaxEnts]

Private Member Functions

void reset ()
EntitycreateEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
void reset ()
EntitycreateEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
void reset ()
EntitycreateEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
void reset ()
EntitycreateEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)
void reset ()
EntitycreateEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f)


Detailed Description

Definition at line 27 of file entityMgr.h.


Constructor & Destructor Documentation

FastEcslent::EntityMgr::EntityMgr ( Engine eng,
Options  opts 
)

Definition at line 34 of file entityMgr.cpp.

References options, and reset().

FastEcslent::EntityMgr::EntityMgr (  ) 

FastEcslent::EntityMgr::EntityMgr ( Engine eng,
Options  opts 
)

FastEcslent::EntityMgr::EntityMgr (  ) 

FastEcslent::EntityMgr::EntityMgr ( Engine eng,
Options  opts 
)

FastEcslent::EntityMgr::EntityMgr (  ) 

FastEcslent::EntityMgr::EntityMgr ( Engine eng,
Options  opts 
)

FastEcslent::EntityMgr::EntityMgr (  ) 

FastEcslent::EntityMgr::EntityMgr ( Engine eng,
Options  opts 
)

FastEcslent::EntityMgr::EntityMgr (  ) 


Member Function Documentation

void FastEcslent::EntityMgr::reset (  )  [inline, private]

Definition at line 30 of file entityMgr.h.

References Meshes, and nEnts.

Referenced by EntityMgr(), and init().

FastEcslent::Entity * FastEcslent::EntityMgr::createEntity ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0,0,0),
float  heading = 0.0f 
) [private]

Definition at line 52 of file entityMgr.cpp.

References FastEcslent::ARMORY, FastEcslent::BARRACKS, FastEcslent::COMMANDCENTER, DEBUG, FastEcslent::Mgr::engine, FastEcslent::ENGINEERINGBAY, FastEcslent::FACTORY, FastEcslent::GAS, FastEcslent::Entity::heading, FastEcslent::HELLION, FastEcslent::MARAUDER, FastEcslent::MARINE, FastEcslent::MaxEnts, FastEcslent::MINERALS, FastEcslent::Entity::pos, FastEcslent::REAPER, FastEcslent::REFINERY, FastEcslent::SCV, FastEcslent::SUPPLYDEPOT, FastEcslent::TANK, FastEcslent::THOR, and FastEcslent::Entity::yaw.

Referenced by createEntityAfterTime(), and createEntityNow().

void FastEcslent::EntityMgr::init (  )  [virtual]

Reimplemented from FastEcslent::Mgr.

Definition at line 39 of file entityMgr.cpp.

References DEBUG, and reset().

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

void FastEcslent::EntityMgr::tick ( double  dtime  )  [virtual]

Reimplemented from FastEcslent::Mgr.

Definition at line 44 of file entityMgr.cpp.

References DEBUG, ents, nEnts, and FastEcslent::Entity::tick().

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

void FastEcslent::EntityMgr::dumpOne ( int  i  ) 

Definition at line 187 of file entityMgr.cpp.

References ents, and FastEcslent::Entity::print().

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

void FastEcslent::EntityMgr::dumpAll (  ) 

Definition at line 191 of file entityMgr.cpp.

References ents, and FastEcslent::Entity::print().

int FastEcslent::EntityMgr::addEntityToGame ( Entity ent  ) 

Definition at line 136 of file entityMgr.cpp.

References FastEcslent::Entity::entityId, ents, and FastEcslent::Identity::id.

Referenced by createEntityAfterTime(), and createEntityNow().

FastEcslent::Entity * FastEcslent::EntityMgr::createEntityForPlayerAndSide ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0,0,0),
float  heading = 0.0f,
Side  side = BATTLEMASTER,
Player  player = ONE 
)

Definition at line 143 of file entityMgr.cpp.

References createEntityAfterTime(), FastEcslent::Entity::desiredSpeed, FastEcslent::Entity::entityId, FastEcslent::Identity::player, and FastEcslent::Identity::side.

Referenced by FastEcslent::NetThread::createEnt(), FastEcslent::NetThread::createEntFromClientReq(), FastEcslent::GameMgr::createNEntitiesRadial(), FastEcslent::GameMgr::makeBaseForSidePlayer(), and FastEcslent::Builder::startBuildingNextEntity().

FastEcslent::Entity * FastEcslent::EntityMgr::createEntityAfterTime ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0,0,0),
float  heading = 0.0f 
)

Definition at line 157 of file entityMgr.cpp.

References addEntityToGame(), createEntity(), DEBUG, FastEcslent::GESTATING, and FastEcslent::Entity::switchState().

Referenced by createEntityForPlayerAndSide(), and FastEcslent::GameMgr::tester().

FastEcslent::Entity * FastEcslent::EntityMgr::createEntityNow ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0,0,0),
float  heading = 0.0f 
)

Definition at line 166 of file entityMgr.cpp.

References addEntityToGame(), FastEcslent::ALIVE, createEntity(), DEBUG, and FastEcslent::Entity::switchState().

bool FastEcslent::EntityMgr::cancelGestatingEntity ( Entity ent  ) 

Definition at line 130 of file entityMgr.cpp.

References FastEcslent::DYING, and FastEcslent::Entity::switchState().

Referenced by FastEcslent::Builder::cancelEntityBeingBuilt().

bool FastEcslent::EntityMgr::preReqExists ( EntityType  etype  ) 

Definition at line 179 of file entityMgr.cpp.

bool FastEcslent::EntityMgr::notExceedPopCap ( Identity  entId  ) 

Definition at line 183 of file entityMgr.cpp.

FastEcslent::Entity * FastEcslent::EntityMgr::getEntityById ( int  id  ) 

Definition at line 174 of file entityMgr.cpp.

References ents.

Referenced by FastEcslent::NetThread::createEntFromClientRes(), FastEcslent::NetThread::propagateCommand(), and FastEcslent::NetThread::responseMineralPatchID().

void FastEcslent::EntityMgr::reset (  )  [inline, private]

Definition at line 30 of file entityMgr.h.

References Meshes, and nEnts.

Entity* FastEcslent::EntityMgr::createEntity ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
) [private]

void FastEcslent::EntityMgr::init (  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::tick ( double  dtime  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::dumpOne ( int  i  ) 

void FastEcslent::EntityMgr::dumpAll (  ) 

int FastEcslent::EntityMgr::addEntityToGame ( Entity ent  ) 

Entity* FastEcslent::EntityMgr::createEntityForPlayerAndSide ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f,
Side  side = BATTLEMASTER,
Player  player = ONE 
)

Entity* FastEcslent::EntityMgr::createEntityAfterTime ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

Entity* FastEcslent::EntityMgr::createEntityNow ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

bool FastEcslent::EntityMgr::cancelGestatingEntity ( Entity ent  ) 

bool FastEcslent::EntityMgr::preReqExists ( EntityType  etype  ) 

bool FastEcslent::EntityMgr::notExceedPopCap ( Identity  entId  ) 

void FastEcslent::EntityMgr::reset (  )  [inline, private]

Definition at line 30 of file entityMgr.h.

References Meshes, and nEnts.

Entity* FastEcslent::EntityMgr::createEntity ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
) [private]

void FastEcslent::EntityMgr::init (  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::tick ( double  dtime  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::dumpOne ( int  i  ) 

void FastEcslent::EntityMgr::dumpAll (  ) 

int FastEcslent::EntityMgr::addEntityToGame ( Entity ent  ) 

Entity* FastEcslent::EntityMgr::createEntityForPlayerAndSide ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f,
Side  side = BATTLEMASTER,
Player  player = ONE 
)

Entity* FastEcslent::EntityMgr::createEntityAfterTime ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

Entity* FastEcslent::EntityMgr::createEntityNow ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

bool FastEcslent::EntityMgr::cancelGestatingEntity ( Entity ent  ) 

bool FastEcslent::EntityMgr::preReqExists ( EntityType  etype  ) 

bool FastEcslent::EntityMgr::notExceedPopCap ( Identity  entId  ) 

void FastEcslent::EntityMgr::reset (  )  [inline, private]

Definition at line 30 of file entityMgr.h.

References Meshes, and nEnts.

Entity* FastEcslent::EntityMgr::createEntity ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
) [private]

void FastEcslent::EntityMgr::init (  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::tick ( double  dtime  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::dumpOne ( int  i  ) 

void FastEcslent::EntityMgr::dumpAll (  ) 

int FastEcslent::EntityMgr::addEntityToGame ( Entity ent  ) 

Entity* FastEcslent::EntityMgr::createEntityForPlayerAndSide ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f,
Side  side = BATTLEMASTER,
Player  player = ONE 
)

Entity* FastEcslent::EntityMgr::createEntityAfterTime ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

Entity* FastEcslent::EntityMgr::createEntityNow ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

bool FastEcslent::EntityMgr::cancelGestatingEntity ( Entity ent  ) 

bool FastEcslent::EntityMgr::preReqExists ( EntityType  etype  ) 

bool FastEcslent::EntityMgr::notExceedPopCap ( Identity  entId  ) 

Entity* FastEcslent::EntityMgr::getEntityById ( int  id  ) 

void FastEcslent::EntityMgr::reset (  )  [inline, private]

Definition at line 30 of file entityMgr.h.

References Meshes, and nEnts.

Entity* FastEcslent::EntityMgr::createEntity ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
) [private]

void FastEcslent::EntityMgr::init (  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::tick ( double  dtime  )  [virtual]

Reimplemented from FastEcslent::Mgr.

void FastEcslent::EntityMgr::dumpOne ( int  i  ) 

void FastEcslent::EntityMgr::dumpAll (  ) 

int FastEcslent::EntityMgr::addEntityToGame ( Entity ent  ) 

Entity* FastEcslent::EntityMgr::createEntityForPlayerAndSide ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f,
Side  side = BATTLEMASTER,
Player  player = ONE 
)

Entity* FastEcslent::EntityMgr::createEntityAfterTime ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

Entity* FastEcslent::EntityMgr::createEntityNow ( EntityType  etype,
Ogre::Vector3  pos = Ogre::Vector3(0, 0, 0),
float  heading = 0.0f 
)

bool FastEcslent::EntityMgr::cancelGestatingEntity ( Entity ent  ) 

bool FastEcslent::EntityMgr::preReqExists ( EntityType  etype  ) 

bool FastEcslent::EntityMgr::notExceedPopCap ( Identity  entId  ) 

Entity* FastEcslent::EntityMgr::getEntityById ( int  id  ) 


Member Data Documentation

Entity* FastEcslent::EntityMgr::ents[MaxEnts]

Definition at line 45 of file entityMgr.h.

Referenced by addEntityToGame(), FastEcslent::Flock::computeSeparation(), dumpAll(), dumpOne(), getEntityById(), FastEcslent::Weapon::getUnitsInRadius(), FastEcslent::GameMgr::initMineralPatch(), FastEcslent::BuildStructureFactory::MakeCommand(), FastEcslent::GameMgr::notExceedPopCap(), FastEcslent::SelectionMgr::resetAll(), FastEcslent::SelectionMgr::select(), FastEcslent::NetThread::sendInfo(), FastEcslent::NetThread::serve(), FastEcslent::Refinery::setAssociatedOilField(), FastEcslent::Weapon::tick(), tick(), FastEcslent::DistanceMgr::tick(), FastEcslent::PotentialMove::tick(), FastEcslent::SelectionMgr::unselect(), and FastEcslent::DistanceMgr::wouldCollide().

std::string FastEcslent::EntityMgr::Meshes

Definition at line 46 of file entityMgr.h.

Referenced by reset().

Options FastEcslent::EntityMgr::options

Definition at line 47 of file entityMgr.h.

Referenced by EntityMgr().

int FastEcslent::EntityMgr::nEnts

Definition at line 48 of file entityMgr.h.

Referenced by FastEcslent::DistanceMgr::dumpAll(), FastEcslent::DistanceMgr::dumpOne(), FastEcslent::Weapon::getUnitsInRadius(), FastEcslent::Weapon::getUnitsInRectangle(), FastEcslent::Flock::init(), FastEcslent::GameMgr::initMineralPatch(), FastEcslent::DistanceMgr::isColliding(), FastEcslent::GameMgr::preReqEntities(), reset(), FastEcslent::SelectionMgr::resetAll(), FastEcslent::Engine::runTests(), FastEcslent::NetThread::serve(), FastEcslent::Refinery::setAssociatedOilField(), tick(), FastEcslent::DistanceMgr::tick(), FastEcslent::PotentialMove::tick(), and FastEcslent::DistanceMgr::wouldCollide().

Entity* FastEcslent::EntityMgr::ents[MaxEnts]

Definition at line 45 of file entityMgr.h.

Entity* FastEcslent::EntityMgr::ents[MaxEnts]

Definition at line 45 of file entityMgr.h.

Entity* FastEcslent::EntityMgr::ents[MaxEnts]

Definition at line 45 of file entityMgr.h.

Entity* FastEcslent::EntityMgr::ents[MaxEnts]

Definition at line 45 of file entityMgr.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