gMenuItemStatus Class Reference

Inheritance diagram for gMenuItemStatus:

Inheritance graph
[legend]
Collaboration diagram for gMenuItemStatus:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 gMenuItemStatus (uMenu *M, ePlayerNetID *playerID, bool displayCurrentTeam)
virtual void Render (REAL x, REAL y, REAL alpha=1, bool selected=0)
virtual bool IsSelectable ()

Private Attributes

ePlayerNetIDplayer
bool currentTeam


Detailed Description

Definition at line 183 of file gTeam.cpp.


Constructor & Destructor Documentation

gMenuItemStatus::gMenuItemStatus ( uMenu M,
ePlayerNetID playerID,
bool  displayCurrentTeam 
) [inline]

Definition at line 188 of file gTeam.cpp.

00189             : uMenuItem( M, tOutput() ), player(playerID), currentTeam(displayCurrentTeam)
00190     {
00191     }


Member Function Documentation

virtual void gMenuItemStatus::Render ( REAL  x,
REAL  y,
REAL  alpha = 1,
bool  selected = 0 
) [inline, virtual]

Reimplemented from uMenuItem.

Definition at line 193 of file gTeam.cpp.

References ePlayerNetID::CurrentTeam(), currentTeam, uMenuItem::DisplayTextSpecial(), ePlayerNetID::NextTeam(), player, and PrepareTeamText().

00194     {
00195         tOutput text;
00196         if  (currentTeam)
00197             PrepareTeamText(&text, player->CurrentTeam(), player, "$team_menu_info_current_team");
00198         else
00199             PrepareTeamText(&text, player->NextTeam(), player, "$team_menu_info_next_team");
00200         DisplayTextSpecial( x, y, text, false, alpha );
00201     }

Here is the call graph for this function:

virtual bool gMenuItemStatus::IsSelectable (  )  [inline, virtual]

Reimplemented from uMenuItem.

Definition at line 203 of file gTeam.cpp.

00204     {
00205         return false;
00206     }


Member Data Documentation

ePlayerNetID* gMenuItemStatus::player [private]

Definition at line 185 of file gTeam.cpp.

Referenced by Render().

bool gMenuItemStatus::currentTeam [private]

Definition at line 186 of file gTeam.cpp.

Referenced by Render().


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:40:41 2008 for Armagetron Advanced by  doxygen 1.5.4