eMenuItemKick Class Reference

Inheritance diagram for eMenuItemKick:

Inheritance graph
[legend]
Collaboration diagram for eMenuItemKick:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 eMenuItemKick (uMenu *m, ePlayerNetID *p)
 ~eMenuItemKick ()
virtual void Enter ()

Private Member Functions

 tCONTROLLED_PTR (ePlayerNetID) player_


Detailed Description

Definition at line 1612 of file eVoter.cpp.


Constructor & Destructor Documentation

eMenuItemKick::eMenuItemKick ( uMenu m,
ePlayerNetID p 
) [inline]

Definition at line 1615 of file eVoter.cpp.

References tString::Clear(), ePlayerNetID::GetName(), eVoteItemHarm::name_, and eVoteItemHarm::player_.

01616             : uMenuItemAction( m, tOutput(""),tOutput("$kick_player_help" ) )
01617     {
01618         this->name_.Clear();
01619         this->name_.SetTemplateParameter(1, p->GetName() );
01620         this->name_ << "$kick_player_text";
01621         player_ = p;
01622     }

Here is the call graph for this function:

eMenuItemKick::~eMenuItemKick (  )  [inline]

Definition at line 1624 of file eVoter.cpp.

01625     {
01626     }


Member Function Documentation

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

Implements uMenuItemAction.

Definition at line 1628 of file eVoter.cpp.

References nSERVER, eVoteItemHarm::player_, se_SendKick(), se_VoteKickPlayer(), and sn_GetNetState().

01629     {
01630         if(sn_GetNetState()==nSERVER)
01631         {
01632             // kill user directly
01633             se_VoteKickPlayer( player_ );
01634         }
01635         {
01636             // issue kick vote
01637             se_SendKick( player_ );
01638         }
01639 
01640         // leave menu to release smart pointers
01641         this->menu->Exit();
01642     }

Here is the call graph for this function:

eMenuItemKick::tCONTROLLED_PTR ( ePlayerNetID   )  [private]


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