gMenuItemPlayerTeam Class Reference

Inheritance diagram for gMenuItemPlayerTeam:

Inheritance graph
[legend]
Collaboration diagram for gMenuItemPlayerTeam:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

tJUST_CONTROLLED_PTR
< ePlayerNetID
player
tJUST_CONTROLLED_PTR< eTeamteam


Detailed Description

Definition at line 73 of file gTeam.cpp.


Constructor & Destructor Documentation

gMenuItemPlayerTeam::gMenuItemPlayerTeam ( uMenu M,
ePlayerNetID p,
eTeam t 
) [inline]

Definition at line 78 of file gTeam.cpp.

00079             : uMenuItem( M, tOutput("$team_menu_join_help", t->Name())),
00080             player ( p ),
00081             team ( t)
00082     {
00083     }


Member Function Documentation

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

Reimplemented from uMenuItem.

Definition at line 85 of file gTeam.cpp.

References uMenuItem::DisplayTextSpecial(), player, PrepareTeamText(), and team.

00086     {
00087         tOutput text;
00088         PrepareTeamText(&text, team, player, "$team_menu_join");
00089         DisplayTextSpecial( x, y, text, selected, alpha );
00090     }

Here is the call graph for this function:

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

Reimplemented from uMenuItem.

Definition at line 92 of file gTeam.cpp.

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

00093     {
00094         player->SetTeamWish( team );
00095         menu->Exit();
00096     }

Here is the call graph for this function:


Member Data Documentation

tJUST_CONTROLLED_PTR< ePlayerNetID > gMenuItemPlayerTeam::player [private]

Definition at line 75 of file gTeam.cpp.

Referenced by Enter(), and Render().

tJUST_CONTROLLED_PTR< eTeam > gMenuItemPlayerTeam::team [private]

Definition at line 76 of file gTeam.cpp.

Referenced by Enter(), and Render().


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