#include <gameMgr.h>
Public Member Functions | |
GameMgr () | |
GameMgr (Engine *eng, Options opts) | |
void | init () |
virtual void | loadLevel () |
void | tick (double dtime) |
bool | preReqExists (Player playerId, EntityType entType) |
bool | preReqResources (Player playerId, EntityType entType) |
bool | preReqEntities (Player playerId, EntityType entType) |
bool | consumeResources (Player playerId, EntityType entityType) |
bool | returnResources (Player playerId, EntityType entityType) |
bool | notExceedPopCap (Identity entId) |
void | setupEntityBuildTimes () |
void | setupEntitySupply () |
void | setupEntityBuildables () |
void | WaterCraft () |
void | makeBaseForSidePlayer (Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset) |
std::vector< Entity * > | createNEntitiesRadial (EntityType entType, int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | createMineralPatch (int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | startMining (Side side, Player player) |
Entity * | findClosestEntityOfTypeWithinDistance (EntityType entityType, Ogre::Vector3 pos, float distance, Side side, Player player) |
void | game0 () |
void | tester () |
void | clearClient () |
MineralPatch * | getMineralPatch (int id) |
MineralPatch * | initMineralPatch () |
GameMgr () | |
GameMgr (Engine *eng, Options opts) | |
void | init () |
void | tick (double dtime) |
bool | preReqExists (EntityType entType) |
bool | notExceedPopCap (Identity entId) |
void | setupEntityBuildTimes () |
void | setupEntitySupply () |
void | WaterCraft () |
void | makeBaseForSidePlayer (Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset) |
std::vector< Entity * > | createNEntitiesRadial (EntityType entType, int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | createMineralPatch (int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | startMining (Side side, Player player) |
Entity * | findClosestEntityOfTypeWithinDistance (EntityType entityType, Ogre::Vector3 pos, float distance, Side side, Player player) |
void | game0 () |
void | tester () |
GameMgr () | |
GameMgr (Engine *eng, Options opts) | |
void | init () |
void | tick (double dtime) |
bool | preReqExists (EntityType entType) |
bool | notExceedPopCap (Identity entId) |
void | setupEntityBuildTimes () |
void | setupEntitySupply () |
void | WaterCraft () |
void | makeBaseForSidePlayer (Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset) |
std::vector< Entity * > | createNEntitiesRadial (EntityType entType, int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | createMineralPatch (int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | startMining (Side side, Player player) |
Entity * | findClosestEntityOfTypeWithinDistance (EntityType entityType, Ogre::Vector3 pos, float distance, Side side, Player player) |
void | game0 () |
void | tester () |
GameMgr () | |
GameMgr (Engine *eng, Options opts) | |
void | init () |
virtual void | loadLevel () |
void | tick (double dtime) |
bool | preReqExists (EntityType entType) |
bool | notExceedPopCap (Identity entId) |
void | setupEntityBuildTimes () |
void | setupEntitySupply () |
void | WaterCraft () |
void | makeBaseForSidePlayer (Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset) |
std::vector< Entity * > | createNEntitiesRadial (EntityType entType, int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | createMineralPatch (int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | startMining (Side side, Player player) |
Entity * | findClosestEntityOfTypeWithinDistance (EntityType entityType, Ogre::Vector3 pos, float distance, Side side, Player player) |
void | game0 () |
void | tester () |
void | clearClient () |
GameMgr () | |
GameMgr (Engine *eng, Options opts) | |
void | init () |
virtual void | loadLevel () |
void | tick (double dtime) |
bool | preReqExists (EntityType entType) |
bool | notExceedPopCap (Identity entId) |
void | setupEntityBuildTimes () |
void | setupEntitySupply () |
void | WaterCraft () |
void | makeBaseForSidePlayer (Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset) |
std::vector< Entity * > | createNEntitiesRadial (EntityType entType, int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | createMineralPatch (int n, Side side, Player player, Ogre::Vector3 location, float offset, float yawOffset, int yawOffsetMultiplier=1) |
void | startMining (Side side, Player player) |
Entity * | findClosestEntityOfTypeWithinDistance (EntityType entityType, Ogre::Vector3 pos, float distance, Side side, Player player) |
void | game0 () |
void | tester () |
void | clearClient () |
Public Attributes | |
Options | options |
int | popCap [NPLAYERS] |
int | pop [NPLAYERS] |
int | currentPopCap [NPLAYERS] |
int | currentEntityCounts [NPLAYERS][NENTITYTYPES] |
Entity * | playerEnts [NPLAYERS][PerPlayerMaxEnts] |
int | playerNEnts [NPLAYERS] |
GameEntTypeProperties | entTypeData [NENTITYTYPES] |
Resources | resources [NPLAYERS] |
Entity * | playerEnts [NPLAYERS][PerPlayerMaxEnts] |
Entity * | playerEnts [NPLAYERS][PerPlayerMaxEnts] |
Entity * | playerEnts [NPLAYERS][PerPlayerMaxEnts] |
Entity * | playerEnts [NPLAYERS][PerPlayerMaxEnts] |
Private Attributes | |
int | mineralPatchID |
bool | mineralPatchInit |
bool | initMining |
std::vector< MineralPatch * > | mineralPatches |
int | gameNumber |
std::vector< MineralPatch * > | mineralPatches |
std::vector< MineralPatch * > | mineralPatches |
std::vector< MineralPatch * > | mineralPatches |
std::vector< MineralPatch * > | mineralPatches |
Definition at line 54 of file gameMgr.h.
FastEcslent::GameMgr::GameMgr | ( | ) |
FastEcslent::GameMgr::GameMgr | ( | ) |
FastEcslent::GameMgr::GameMgr | ( | ) |
FastEcslent::GameMgr::GameMgr | ( | ) |
FastEcslent::GameMgr::GameMgr | ( | ) |
void FastEcslent::GameMgr::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
Definition at line 38 of file gameMgr.cpp.
Referenced by FastEcslent::Engine::init().
void FastEcslent::GameMgr::loadLevel | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
Definition at line 41 of file gameMgr.cpp.
References FastEcslent::Mgr::engine, game0(), Options::gameNumber, FastEcslent::Engine::options, tester(), and WaterCraft().
Referenced by FastEcslent::Engine::loadLevel().
void FastEcslent::GameMgr::tick | ( | double | dtime | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
Definition at line 411 of file gameMgr.cpp.
Referenced by FastEcslent::Engine::tickAll().
bool FastEcslent::GameMgr::preReqExists | ( | Player | playerId, | |
EntityType | entType | |||
) |
bool FastEcslent::GameMgr::preReqResources | ( | Player | playerId, | |
EntityType | entType | |||
) |
bool FastEcslent::GameMgr::preReqEntities | ( | Player | playerId, | |
EntityType | entType | |||
) |
Definition at line 77 of file gameMgr.cpp.
References FastEcslent::Mgr::engine, FastEcslent::Engine::entityMgr, FastEcslent::NENTITYTYPES, and FastEcslent::EntityMgr::nEnts.
Referenced by preReqExists().
bool FastEcslent::GameMgr::consumeResources | ( | Player | playerId, | |
EntityType | entityType | |||
) |
Definition at line 101 of file gameMgr.cpp.
References entTypeData, FastEcslent::GameEntTypeProperties::gas, FastEcslent::Resources::gas, FastEcslent::GameEntTypeProperties::minerals, FastEcslent::Resources::minerals, and resources.
Referenced by FastEcslent::Builder::enqueue().
bool FastEcslent::GameMgr::returnResources | ( | Player | playerId, | |
EntityType | entityType | |||
) |
Definition at line 112 of file gameMgr.cpp.
References entTypeData, FastEcslent::GameEntTypeProperties::gas, FastEcslent::Resources::gas, FastEcslent::GameEntTypeProperties::minerals, FastEcslent::Resources::minerals, and resources.
bool FastEcslent::GameMgr::notExceedPopCap | ( | Identity | entId | ) |
Definition at line 57 of file gameMgr.cpp.
References FastEcslent::Mgr::engine, FastEcslent::Engine::entityMgr, FastEcslent::EntityMgr::ents, and FastEcslent::Identity::id.
void FastEcslent::GameMgr::setupEntityBuildTimes | ( | ) |
Definition at line 119 of file gameMgr.cpp.
References FastEcslent::ARMORY, FastEcslent::BARRACKS, FastEcslent::GameEntTypeProperties::buildTime, FastEcslent::COMMANDCENTER, FastEcslent::ENGINEERINGBAY, entTypeData, FastEcslent::FACTORY, FastEcslent::GAS, FastEcslent::HELLION, FastEcslent::MARAUDER, FastEcslent::MARINE, FastEcslent::GameEntTypeProperties::minerals, FastEcslent::MINERALS, FastEcslent::REAPER, FastEcslent::REFINERY, FastEcslent::SCV, FastEcslent::SUPPLYDEPOT, FastEcslent::TANK, and FastEcslent::THOR.
Referenced by game0(), and WaterCraft().
void FastEcslent::GameMgr::setupEntitySupply | ( | ) |
Definition at line 179 of file gameMgr.cpp.
References entTypeData, FastEcslent::HELLION, FastEcslent::MARAUDER, FastEcslent::MARINE, FastEcslent::NENTITYTYPES, FastEcslent::REAPER, FastEcslent::SCV, FastEcslent::GameEntTypeProperties::supply, FastEcslent::TANK, and FastEcslent::THOR.
Referenced by WaterCraft().
void FastEcslent::GameMgr::setupEntityBuildables | ( | ) |
Definition at line 158 of file gameMgr.cpp.
References FastEcslent::BARRACKS, FastEcslent::GameEntTypeProperties::buildableEntities, FastEcslent::COMMANDCENTER, entTypeData, FastEcslent::FACTORY, FastEcslent::HELLION, FastEcslent::MARINE, FastEcslent::GameEntTypeProperties::neededTypes, FastEcslent::NENTITYTYPES, FastEcslent::REFINERY, and FastEcslent::SCV.
Referenced by WaterCraft().
void FastEcslent::GameMgr::WaterCraft | ( | ) |
Definition at line 203 of file gameMgr.cpp.
References FastEcslent::BLUE, clearClient(), currentPopCap, FastEcslent::Mgr::engine, FastEcslent::Resources::gas, initMining, Options::isServer, makeBaseForSidePlayer(), mineralPatchID, mineralPatchInit, FastEcslent::Resources::minerals, FastEcslent::NPLAYERS, FastEcslent::ONE, FastEcslent::Engine::options, playerNEnts, pop, popCap, FastEcslent::RED, resources, setupEntityBuildables(), setupEntityBuildTimes(), setupEntitySupply(), and FastEcslent::THREE.
Referenced by loadLevel().
void FastEcslent::GameMgr::makeBaseForSidePlayer | ( | Side | side, | |
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset | |||
) |
Definition at line 249 of file gameMgr.cpp.
References FastEcslent::ALIVE, FastEcslent::COMMANDCENTER, FastEcslent::EntityMgr::createEntityForPlayerAndSide(), createMineralPatch(), createNEntitiesRadial(), currentEntityCounts, DEBUG, FastEcslent::Mgr::engine, FastEcslent::Engine::entityMgr, FastEcslent::Entity::entityState, FastEcslent::Entity::entityType, FastEcslent::GAS, FastEcslent::NEUTRAL, playerEnts, playerNEnts, FastEcslent::Entity::pos, FastEcslent::SCV, and FastEcslent::Entity::uiname.
Referenced by WaterCraft().
std::vector< FastEcslent::Entity * > FastEcslent::GameMgr::createNEntitiesRadial | ( | EntityType | entType, | |
int | n, | |||
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Definition at line 269 of file gameMgr.cpp.
References FastEcslent::ALIVE, FastEcslent::EntityMgr::createEntityForPlayerAndSide(), currentEntityCounts, FastEcslent::Mgr::engine, FastEcslent::Engine::entityMgr, FastEcslent::Entity::entityState, FastEcslent::Entity::entityType, entTypeData, playerEnts, playerNEnts, pop, and FastEcslent::GameEntTypeProperties::supply.
Referenced by createMineralPatch(), and makeBaseForSidePlayer().
void FastEcslent::GameMgr::createMineralPatch | ( | int | n, | |
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Definition at line 298 of file gameMgr.cpp.
References FastEcslent::MineralPatch::addMineral(), createNEntitiesRadial(), FastEcslent::MineralPatch::getID(), mineralPatches, FastEcslent::Minerals::mineralPatchId, and FastEcslent::MINERALS.
Referenced by makeBaseForSidePlayer().
Definition at line 332 of file gameMgr.cpp.
References FastEcslent::createGatherForEntAndMineral(), FastEcslent::Entity::entityType, findClosestEntityOfTypeWithinDistance(), FastEcslent::Entity::getAspect(), FastEcslent::MINERALS, playerEnts, playerNEnts, FastEcslent::Entity::pos, FastEcslent::SCV, FastEcslent::UnitAI::setCommand(), and FastEcslent::UNITAI.
FastEcslent::Entity * FastEcslent::GameMgr::findClosestEntityOfTypeWithinDistance | ( | EntityType | entityType, | |
Ogre::Vector3 | pos, | |||
float | distance, | |||
Side | side, | |||
Player | player | |||
) |
Definition at line 309 of file gameMgr.cpp.
References FastEcslent::ALIVE, DEBUG, FastEcslent::Entity::entityState, FastEcslent::Entity::entityType, playerEnts, playerNEnts, FastEcslent::Entity::pos, and FastEcslent::Entity::uiname.
Referenced by FastEcslent::Gather::gatherTick(), and startMining().
void FastEcslent::GameMgr::game0 | ( | ) |
Definition at line 192 of file gameMgr.cpp.
References currentPopCap, FastEcslent::NPLAYERS, pop, popCap, setupEntityBuildTimes(), and tester().
Referenced by loadLevel().
void FastEcslent::GameMgr::tester | ( | ) |
Definition at line 348 of file gameMgr.cpp.
References FastEcslent::ARMORY, FastEcslent::BARRACKS, FastEcslent::COMMANDCENTER, FastEcslent::EntityMgr::createEntityAfterTime(), DEBUG, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, FastEcslent::Mgr::engine, FastEcslent::ENGINEERINGBAY, FastEcslent::Engine::entityMgr, FastEcslent::FACTORY, FastEcslent::Entity::heading, FastEcslent::Entity::pos, FastEcslent::REFINERY, FastEcslent::SelectionMgr::resetAll(), FastEcslent::Engine::selectionMgr, FastEcslent::SUPPLYDEPOT, FastEcslent::Entity::uiname, and FastEcslent::Entity::yaw.
Referenced by game0(), and loadLevel().
void FastEcslent::GameMgr::clearClient | ( | ) |
FastEcslent::MineralPatch * FastEcslent::GameMgr::getMineralPatch | ( | int | id | ) |
Definition at line 423 of file gameMgr.cpp.
References initMineralPatch(), mineralPatches, and mineralPatchInit.
Referenced by initMineralPatch(), and FastEcslent::Gather::moveToEntityTick().
FastEcslent::MineralPatch * FastEcslent::GameMgr::initMineralPatch | ( | ) |
Definition at line 441 of file gameMgr.cpp.
References FastEcslent::MineralPatch::addMineral(), FastEcslent::Mgr::engine, FastEcslent::Engine::entityMgr, FastEcslent::Entity::entityType, FastEcslent::EntityMgr::ents, getMineralPatch(), FastEcslent::Minerals::mineralPatchId, FastEcslent::MINERALS, and FastEcslent::EntityMgr::nEnts.
Referenced by getMineralPatch().
void FastEcslent::GameMgr::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
void FastEcslent::GameMgr::tick | ( | double | dtime | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
bool FastEcslent::GameMgr::preReqExists | ( | EntityType | entType | ) |
Definition at line 61 of file gameMgr.cpp.
bool FastEcslent::GameMgr::notExceedPopCap | ( | Identity | entId | ) |
void FastEcslent::GameMgr::setupEntityBuildTimes | ( | ) |
void FastEcslent::GameMgr::setupEntitySupply | ( | ) |
void FastEcslent::GameMgr::WaterCraft | ( | ) |
void FastEcslent::GameMgr::makeBaseForSidePlayer | ( | Side | side, | |
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset | |||
) |
std::vector<Entity*> FastEcslent::GameMgr::createNEntitiesRadial | ( | EntityType | entType, | |
int | n, | |||
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
void FastEcslent::GameMgr::createMineralPatch | ( | int | n, | |
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Entity* FastEcslent::GameMgr::findClosestEntityOfTypeWithinDistance | ( | EntityType | entityType, | |
Ogre::Vector3 | pos, | |||
float | distance, | |||
Side | side, | |||
Player | player | |||
) |
void FastEcslent::GameMgr::game0 | ( | ) |
void FastEcslent::GameMgr::tester | ( | ) |
void FastEcslent::GameMgr::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
void FastEcslent::GameMgr::tick | ( | double | dtime | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
bool FastEcslent::GameMgr::preReqExists | ( | EntityType | entType | ) |
bool FastEcslent::GameMgr::notExceedPopCap | ( | Identity | entId | ) |
void FastEcslent::GameMgr::setupEntityBuildTimes | ( | ) |
void FastEcslent::GameMgr::setupEntitySupply | ( | ) |
void FastEcslent::GameMgr::WaterCraft | ( | ) |
void FastEcslent::GameMgr::makeBaseForSidePlayer | ( | Side | side, | |
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset | |||
) |
std::vector<Entity*> FastEcslent::GameMgr::createNEntitiesRadial | ( | EntityType | entType, | |
int | n, | |||
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
void FastEcslent::GameMgr::createMineralPatch | ( | int | n, | |
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Entity* FastEcslent::GameMgr::findClosestEntityOfTypeWithinDistance | ( | EntityType | entityType, | |
Ogre::Vector3 | pos, | |||
float | distance, | |||
Side | side, | |||
Player | player | |||
) |
void FastEcslent::GameMgr::game0 | ( | ) |
void FastEcslent::GameMgr::tester | ( | ) |
void FastEcslent::GameMgr::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
virtual void FastEcslent::GameMgr::loadLevel | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
void FastEcslent::GameMgr::tick | ( | double | dtime | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
bool FastEcslent::GameMgr::preReqExists | ( | EntityType | entType | ) |
bool FastEcslent::GameMgr::notExceedPopCap | ( | Identity | entId | ) |
void FastEcslent::GameMgr::setupEntityBuildTimes | ( | ) |
void FastEcslent::GameMgr::setupEntitySupply | ( | ) |
void FastEcslent::GameMgr::WaterCraft | ( | ) |
void FastEcslent::GameMgr::makeBaseForSidePlayer | ( | Side | side, | |
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset | |||
) |
std::vector<Entity*> FastEcslent::GameMgr::createNEntitiesRadial | ( | EntityType | entType, | |
int | n, | |||
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
void FastEcslent::GameMgr::createMineralPatch | ( | int | n, | |
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Entity* FastEcslent::GameMgr::findClosestEntityOfTypeWithinDistance | ( | EntityType | entityType, | |
Ogre::Vector3 | pos, | |||
float | distance, | |||
Side | side, | |||
Player | player | |||
) |
void FastEcslent::GameMgr::game0 | ( | ) |
void FastEcslent::GameMgr::tester | ( | ) |
void FastEcslent::GameMgr::clearClient | ( | ) |
void FastEcslent::GameMgr::init | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
virtual void FastEcslent::GameMgr::loadLevel | ( | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
void FastEcslent::GameMgr::tick | ( | double | dtime | ) | [virtual] |
Reimplemented from FastEcslent::Mgr.
bool FastEcslent::GameMgr::preReqExists | ( | EntityType | entType | ) |
bool FastEcslent::GameMgr::notExceedPopCap | ( | Identity | entId | ) |
void FastEcslent::GameMgr::setupEntityBuildTimes | ( | ) |
void FastEcslent::GameMgr::setupEntitySupply | ( | ) |
void FastEcslent::GameMgr::WaterCraft | ( | ) |
void FastEcslent::GameMgr::makeBaseForSidePlayer | ( | Side | side, | |
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset | |||
) |
std::vector<Entity*> FastEcslent::GameMgr::createNEntitiesRadial | ( | EntityType | entType, | |
int | n, | |||
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
void FastEcslent::GameMgr::createMineralPatch | ( | int | n, | |
Side | side, | |||
Player | player, | |||
Ogre::Vector3 | location, | |||
float | offset, | |||
float | yawOffset, | |||
int | yawOffsetMultiplier = 1 | |||
) |
Entity* FastEcslent::GameMgr::findClosestEntityOfTypeWithinDistance | ( | EntityType | entityType, | |
Ogre::Vector3 | pos, | |||
float | distance, | |||
Side | side, | |||
Player | player | |||
) |
void FastEcslent::GameMgr::game0 | ( | ) |
void FastEcslent::GameMgr::tester | ( | ) |
void FastEcslent::GameMgr::clearClient | ( | ) |
int FastEcslent::GameMgr::mineralPatchID [private] |
bool FastEcslent::GameMgr::mineralPatchInit [private] |
bool FastEcslent::GameMgr::initMining [private] |
std::vector<MineralPatch*> FastEcslent::GameMgr::mineralPatches [private] |
Definition at line 67 of file gameMgr.h.
Referenced by FastEcslent::NetThread::createEnt(), createNEntitiesRadial(), game0(), and WaterCraft().
Definition at line 69 of file gameMgr.h.
Referenced by FastEcslent::NetThread::createEnt(), createNEntitiesRadial(), and makeBaseForSidePlayer().
Entity* FastEcslent::GameMgr::playerEnts[NPLAYERS][PerPlayerMaxEnts] |
Definition at line 70 of file gameMgr.h.
Referenced by FastEcslent::NetThread::createEnt(), createNEntitiesRadial(), findClosestEntityOfTypeWithinDistance(), makeBaseForSidePlayer(), and startMining().
Definition at line 71 of file gameMgr.h.
Referenced by FastEcslent::NetThread::createEnt(), createNEntitiesRadial(), findClosestEntityOfTypeWithinDistance(), makeBaseForSidePlayer(), startMining(), and WaterCraft().
Definition at line 73 of file gameMgr.h.
Referenced by consumeResources(), FastEcslent::NetThread::createEnt(), createNEntitiesRadial(), FastEcslent::Entity::init(), returnResources(), setupEntityBuildables(), setupEntityBuildTimes(), setupEntitySupply(), and FastEcslent::Entity::switchState().
Definition at line 74 of file gameMgr.h.
Referenced by consumeResources(), returnResources(), FastEcslent::Gather::switchState(), and WaterCraft().
int FastEcslent::GameMgr::gameNumber [private] |
std::vector<MineralPatch*> FastEcslent::GameMgr::mineralPatches [private] |
Entity* FastEcslent::GameMgr::playerEnts[NPLAYERS][PerPlayerMaxEnts] |
std::vector<MineralPatch*> FastEcslent::GameMgr::mineralPatches [private] |
Entity* FastEcslent::GameMgr::playerEnts[NPLAYERS][PerPlayerMaxEnts] |
std::vector<MineralPatch*> FastEcslent::GameMgr::mineralPatches [private] |
Entity* FastEcslent::GameMgr::playerEnts[NPLAYERS][PerPlayerMaxEnts] |
std::vector<MineralPatch*> FastEcslent::GameMgr::mineralPatches [private] |
Entity* FastEcslent::GameMgr::playerEnts[NPLAYERS][PerPlayerMaxEnts] |