Logo Search packages:      
Sourcecode: pathogen version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

App Class Reference

Inheritance diagram for App:
Inheritance graph
Collaboration diagram for App:
Collaboration graph

List of all members.

Public Types

typedef std::list< SDLKey > KeyEventList

Public Member Functions

KeyEventList & getKeyEventList ()
UINT8 * getKeyState () const
SDL_Surface * getScreen () const
APP_STATE getState () const
virtual BOOL init ()
BOOL isAlive () const
virtual void run ()
void setAlive (BOOL alive)
void setKeyState (UINT8 *keyState)
virtual void setState (INT state)

Static Public Member Functions

static AppgetInstance ()
static void setInstance (App *singleton)

Protected Member Functions

virtual char * getCaption ()=0
virtual StategetStateHandler (INT state)=0
void resetTime ()
virtual BOOL update ()

Protected Attributes

BOOL mAlive
SDL_EventFilter mCustomEventFilter
KeyEventList mKeyEvents
UINT8 * mKeyState
UINT32 mNextUpdateTime
SDL_Surface * mScreen
UINT32 mStartTime
UINT32 mTime

Static Protected Attributes

static AppmSingleton = NULL

Detailed Description

Definition at line 40 of file App.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index