eMenuItemPassword Class Reference

Inheritance diagram for eMenuItemPassword:

Inheritance graph
[legend]
Collaboration diagram for eMenuItemPassword:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 eMenuItemPassword (uMenu *M, tString &c)
virtual ~eMenuItemPassword ()
virtual void Render (REAL x, REAL y, REAL alpha=1, bool selected=0)
virtual bool Event (SDL_Event &e)

Static Public Attributes

static bool entered


Detailed Description

Definition at line 380 of file ePlayer.cpp.


Constructor & Destructor Documentation

eMenuItemPassword::eMenuItemPassword ( uMenu M,
tString c 
) [inline]

Definition at line 385 of file ePlayer.cpp.

00385                                           :
00386     uMenuItemString(M,"$login_password_title","$login_password_help",c)
00387     {
00388         entered = false;
00389     }
    virtual ~eMenuItemPassword(){}

virtual eMenuItemPassword::~eMenuItemPassword (  )  [inline, virtual]

Definition at line 390 of file ePlayer.cpp.

00390 {}


Member Function Documentation

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

Reimplemented from uMenuItemString.

Definition at line 392 of file ePlayer.cpp.

References uMenuItemString::Render().

00393     {
00394         tString* pwback = content;
00395         tString star;
00396         for (int i=content->Len()-2; i>=0; i--)
00397             star << "*";
00398         content = &star;
00399         uMenuItemString::Render(x,y, alpha, selected);
00400         content = pwback;
00401     }

Here is the call graph for this function:

virtual bool eMenuItemPassword::Event ( SDL_Event &  e  )  [inline, virtual]

Reimplemented from uMenuItemString.

Definition at line 403 of file ePlayer.cpp.

References uMenuItemString::Event().

00403                                     {
00404 #ifndef DEDICATED
00405         if (e.type==SDL_KEYDOWN &&
00406                 (e.key.keysym.sym==SDLK_KP_ENTER || e.key.keysym.sym==SDLK_RETURN)){
00407 
00408             entered = true;
00409             MyMenu()->Exit();
00410             return true;
00411         }
00412         else
00413 #endif
00414             return uMenuItemString::Event(e);
00415     }

Here is the call graph for this function:


Member Data Documentation

bool eMenuItemPassword::entered [static]

Definition at line 383 of file ePlayer.cpp.


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