Game-related HUD widgets. More...
#include <_src_game_hud.hh>
Classes | |
| struct | TargetIndicator |
| Target indicator box (graphical object). More... | |
Public Member Functions | |
| DEFINE_GetInstance (Hud) void AttachTarget(shptr< Object > target | |
| void | DetachTarget (shptr< Object > target) |
| void | SelectTarget (shptr< Object > target, const bool radarLock) |
| void | DeselectTarget (void) |
| void | RemoveRadarLock (void) |
Public Attributes | |
| const string & | text |
Private Types | |
| typedef std::map< shptr < Object >, TargetIndicator > | TargetIndicatorMap |
Private Member Functions | |
| Hud (void) | |
| ~Hud () | |
| void | Tick (const Milliseconds millisecElapsed) |
| void | SetTargetIndicator (shptr< Object > object, const RGBA color, const bool drawX) |
Private Attributes | |
| CLASS_DESTROY_OBJECT_LISTENER(Hud, mHud) private shptr< Object > | mDummyTarget |
| Timer-tick. | |
| shptr< Object > | mSelectedTarget |
| TargetIndicatorMap | mTargetIndicatorMap |
| maps an Object to a TargetIndicator box | |
| shptr< TickFunctor > | mTickFunctor |
| shptr< DestroyObjectListener > | mDestroyObjectListener |
| listen for the destroying of trail-maker Object | |
Game-related HUD widgets.
typedef std::map<shptr<Object>,TargetIndicator> game::Hud::TargetIndicatorMap [private] |
| game::Hud::Hud | ( | void | ) | [private] |
ctor/dtor.
| game::Hud::~Hud | ( | ) | [private] |
| game::Hud::DEFINE_GetInstance | ( | Hud | ) |
| void game::Hud::DeselectTarget | ( | void | ) |
Deselect all targets.
Detach target. NOP if target isn't contained in this HUD.
| void game::Hud::RemoveRadarLock | ( | void | ) |
Remove radar lock indicator.
Select a target. Represented in HUD as a "target indicator box".
| void game::Hud::SetTargetIndicator | ( | shptr< Object > | object, | |
| const RGBA | color, | |||
| const bool | drawX | |||
| ) | [private] |
Set attributes of TargetIndicator (graphical object).
| object | Object mapped to target-indicator box. | |
| color | ||
| drawX | Draw an X over box. |
| void game::Hud::Tick | ( | const Milliseconds | millisecElapsed | ) | [private] |
Updates the target boxes.
shptr<DestroyObjectListener> game::Hud::mDestroyObjectListener [private] |
listen for the destroying of trail-maker Object
CLASS_DESTROY_OBJECT_LISTENER ( Hud, mHud ) private shptr<Object> game::Hud::mDummyTarget [private] |
Timer-tick.
to indicate no selected target
shptr<Object> game::Hud::mSelectedTarget [private] |
maps an Object to a TargetIndicator box
shptr<TickFunctor> game::Hud::mTickFunctor [private] |
| const string& game::Hud::text |
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:11