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

GameApp Class Reference

Inheritance diagram for GameApp:
Inheritance graph
Collaboration diagram for GameApp:
Collaboration graph

List of all members.

Public Types

typedef std::list< SDLKey > KeyEventList

Public Member Functions

BuildStategetBuildState ()
FontgetFont ()
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 ()
virtual StategetStateHandler (INT state)
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 45 of file GameApp.h.

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

Generated by  Doxygen 1.6.0   Back to index