Public Member Functions | |
eMenuItemKick (uMenu *m, ePlayerNetID *p) | |
~eMenuItemKick () | |
virtual void | Enter () |
Private Member Functions | |
tCONTROLLED_PTR (ePlayerNetID) player_ |
Definition at line 1612 of file eVoter.cpp.
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 }
eMenuItemKick::~eMenuItemKick | ( | ) | [inline] |
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 }
eMenuItemKick::tCONTROLLED_PTR | ( | ePlayerNetID | ) | [private] |