#include <entityMgr.h>
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) |
Entity * | createEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE) |
Entity * | createEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Entity * | createEntityNow (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) |
Entity * | getEntityById (int id) |
EntityMgr (Engine *eng, Options opts) | |
EntityMgr () | |
void | init () |
void | tick (double dtime) |
void | dumpOne (int i) |
void | dumpAll () |
int | addEntityToGame (Entity *ent) |
Entity * | createEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE) |
Entity * | createEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Entity * | createEntityNow (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) |
Entity * | createEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE) |
Entity * | createEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Entity * | createEntityNow (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) |
Entity * | createEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE) |
Entity * | createEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Entity * | createEntityNow (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) |
Entity * | getEntityById (int id) |
EntityMgr (Engine *eng, Options opts) | |
EntityMgr () | |
void | init () |
void | tick (double dtime) |
void | dumpOne (int i) |
void | dumpAll () |
int | addEntityToGame (Entity *ent) |
Entity * | createEntityForPlayerAndSide (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f, Side side=BATTLEMASTER, Player player=ONE) |
Entity * | createEntityAfterTime (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Entity * | createEntityNow (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) |
Entity * | getEntityById (int id) |
Public Attributes | |
Entity * | ents [MaxEnts] |
std::string | Meshes [6] |
Options | options |
int | nEnts |
Entity * | ents [MaxEnts] |
Entity * | ents [MaxEnts] |
Entity * | ents [MaxEnts] |
Entity * | ents [MaxEnts] |
Private Member Functions | |
void | reset () |
Entity * | createEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
void | reset () |
Entity * | createEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
void | reset () |
Entity * | createEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
void | reset () |
Entity * | createEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
void | reset () |
Entity * | createEntity (EntityType etype, Ogre::Vector3 pos=Ogre::Vector3(0, 0, 0), float heading=0.0f) |
Definition at line 27 of file entityMgr.h.
FastEcslent::EntityMgr::EntityMgr | ( | ) |
FastEcslent::EntityMgr::EntityMgr | ( | ) |
FastEcslent::EntityMgr::EntityMgr | ( | ) |
FastEcslent::EntityMgr::EntityMgr | ( | ) |
FastEcslent::EntityMgr::EntityMgr | ( | ) |
void FastEcslent::EntityMgr::reset | ( | ) | [inline, private] |
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 | ( | ) |
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] |
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] |
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] |
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] |
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 | ) |
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 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().
Definition at line 45 of file entityMgr.h.
Definition at line 45 of file entityMgr.h.
Definition at line 45 of file entityMgr.h.
Definition at line 45 of file entityMgr.h.