gMenuItemAutoSelect Class Reference

Inheritance diagram for gMenuItemAutoSelect:

Inheritance graph
[legend]
Collaboration diagram for gMenuItemAutoSelect:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 gMenuItemAutoSelect (uMenu *M, ePlayerNetID *p)
virtual void Render (REAL x, REAL y, REAL alpha=1, bool selected=0)
virtual void Enter ()

Private Attributes

ePlayerNetIDplayer


Detailed Description

Definition at line 143 of file gTeam.cpp.


Constructor & Destructor Documentation

gMenuItemAutoSelect::gMenuItemAutoSelect ( uMenu M,
ePlayerNetID p 
) [inline]

Definition at line 147 of file gTeam.cpp.

00148             : uMenuItem( M, tOutput("$team_menu_auto_help") ),
00149             player ( p )
00150     {
00151     }


Member Function Documentation

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

Reimplemented from uMenuItem.

Definition at line 153 of file gTeam.cpp.

References uMenuItem::DisplayTextSpecial(), and se_TeamMenu_Team_Ok.

00154     {
00155         DisplayTextSpecial( x, y, se_TeamMenu_Team_Ok+(const char*)tOutput("$team_menu_auto"), selected, alpha );
00156     }

Here is the call graph for this function:

virtual void gMenuItemAutoSelect::Enter (  )  [inline, virtual]

Reimplemented from uMenuItem.

Definition at line 158 of file gTeam.cpp.

References uMenu::Exit(), uMenuItem::menu, player, and ePlayerNetID::SetDefaultTeam().

00159     {
00160         player->SetDefaultTeam();
00161         menu->Exit();
00162     }

Here is the call graph for this function:


Member Data Documentation

ePlayerNetID* gMenuItemAutoSelect::player [private]

Definition at line 145 of file gTeam.cpp.

Referenced by Enter().


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