#include <mod_sim_game.hh>
Public Types | |
| enum | { TEAM_NONE, TEAM1, TEAM2 } |
| enum | eTargets { eTargets_ALL, eTargets_MISSILE_LOCK } |
| typedef int | TeamNum |
| typedef map< ActorId, SharedPtr< Actor > > | Actors |
| typedef map< ActorId, SharedPtr < CraftActor > > | CraftActors |
Public Member Functions | |
| Game (void) | |
| void | Init (void) |
| ~Game () | |
| mod_sim::Sound & | GetSound (void) |
| int | GetScore (void) |
| void | AddScore (int points) |
| void | AddActor (SharedPtr< Actor > actor) |
| void | AddCraftActor (SharedPtr< CraftActor > craftActor) |
| void | ZombifyActor (SharedPtr< Actor > actor) |
| SharedPtr< CraftActor > | GetPlayerActor (void) |
| CraftActors | GetPlayerTargets (const eTargets whichTargets) |
| void | SetPlayerHasMissileLock (const bool hasLock) |
| bool | IfPlayerHasMissileLock (void) |
| void | UpdateMissileView (const Matrix &m) |
| void | ReleaseMissileView (void) |
| void | SpawnEnemyCraft (const uint num) |
Public Attributes | |
| GFX::Light | mLightMissile |
| light source | |
Private Types | |
| typedef uint | ActorId |
Private Member Functions | |
| void | Tick (const Milliseconds millisecElapsed) |
| void | Idle (void) |
Private Attributes | |
| CLASS_CONST uint | MAX_TARGETS = 500 |
| CLASS_VAR set< ActorId > | msZombieActors |
| zombie Actors | |
| shptr< TimerFunctor > | mTimerFunctor |
| pulses Actors | |
| shptr< IdleFunctor > | mIdleFunctor |
| to destroy zombie Actors | |
| shptr< MultiView > | mMultiView |
| View derivative with multiple modes. | |
| mod_sim::Sound | mSound |
| high-level sound class | |
| shptr< CraftActor > | mPlayerActor |
| the player's Actor | |
| Actors | mActors |
| all Actors | |
| CraftActors | mCraftActors |
| subset of mActors that are CraftActors | |
| int | mScore |
| bool | mPlayerHasMissileLock |
| indirectly tracked by HUD | |
| uint | mEnemyCraftSpawned |
Friends | |
| class | IdleFunctor |
| struct | ListenerPostDrawOneView |
Classes | |
| class | IdleFunctor |
| Periodically destroys zombie Actors. More... | |
| struct | ListenerPostDrawOneView |
| class | MultiView |
| MultiView. More... | |
| class | TimerFunctor |
| Pulsed by timer-tick. More... | |
Game is an object of SimModule. Game mode is orthogonal to FlightMode. HUD determines missile-lock when it computes 2D coords of target box.
| typedef int mod_sim::game::Game::TeamNum |
typedef uint mod_sim::game::Game::ActorId [private] |
| typedef map<ActorId,SharedPtr<Actor> > mod_sim::game::Game::Actors |
| typedef map<ActorId,SharedPtr<CraftActor> > mod_sim::game::Game::CraftActors |
| mod_sim::game::Game::Game | ( | void | ) |
ctor/dtor.
| mod_sim::game::Game::~Game | ( | ) |
| void mod_sim::game::Game::Init | ( | void | ) |
| mod_sim::Sound& mod_sim::game::Game::GetSound | ( | void | ) | [inline] |
| int mod_sim::game::Game::GetScore | ( | void | ) |
Score.
| void mod_sim::game::Game::AddScore | ( | int | points | ) |
| void mod_sim::game::Game::AddActor | ( | SharedPtr< Actor > | actor | ) |
| void mod_sim::game::Game::AddCraftActor | ( | SharedPtr< CraftActor > | craftActor | ) |
| void mod_sim::game::Game::ZombifyActor | ( | SharedPtr< Actor > | actor | ) |
| SharedPtr<CraftActor> mod_sim::game::Game::GetPlayerActor | ( | void | ) | [inline] |
| Game::CraftActors mod_sim::game::Game::GetPlayerTargets | ( | const eTargets | whichTargets | ) |
| whichTargets |
| void mod_sim::game::Game::SetPlayerHasMissileLock | ( | const bool | hasLock | ) |
HUD and Game cooperate to track player having a missile-lock on a target.
| bool mod_sim::game::Game::IfPlayerHasMissileLock | ( | void | ) |
| void mod_sim::game::Game::UpdateMissileView | ( | const Matrix & | m | ) |
| void mod_sim::game::Game::ReleaseMissileView | ( | void | ) |
A missile that hits or expires calls this to release the missile View. This gives Game the option of auto-switching to another View.
| void mod_sim::game::Game::SpawnEnemyCraft | ( | const uint | num | ) |
Spawn enemy craft.
| void mod_sim::game::Game::Tick | ( | const Milliseconds | millisecElapsed | ) | [private] |
| void mod_sim::game::Game::Idle | ( | void | ) | [private] |
friend class IdleFunctor [friend] |
friend struct ListenerPostDrawOneView [friend] |
CLASS_CONST uint mod_sim::game::Game::MAX_TARGETS = 500 [private] |
set< Game::ActorId > mod_sim::game::Game::msZombieActors [private] |
zombie Actors
shptr<TimerFunctor> mod_sim::game::Game::mTimerFunctor [private] |
pulses Actors
shptr<IdleFunctor> mod_sim::game::Game::mIdleFunctor [private] |
to destroy zombie Actors
shptr<MultiView> mod_sim::game::Game::mMultiView [private] |
View derivative with multiple modes.
| GFX::Light mod_sim::game::Game::mLightMissile |
light source
mod_sim::Sound mod_sim::game::Game::mSound [private] |
high-level sound class
shptr<CraftActor> mod_sim::game::Game::mPlayerActor [private] |
the player's Actor
Actors mod_sim::game::Game::mActors [private] |
all Actors
CraftActors mod_sim::game::Game::mCraftActors [private] |
subset of mActors that are CraftActors
int mod_sim::game::Game::mScore [private] |
bool mod_sim::game::Game::mPlayerHasMissileLock [private] |
indirectly tracked by HUD
uint mod_sim::game::Game::mEnemyCraftSpawned [private] |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:32 2007