1 #ifndef GAMESTATE_H_DEFINED 2 #define GAMESTATE_H_DEFINED 58 virtual void load(
int stack=0) = 0;
75 virtual void draw() = 0;
80 #endif //GAMESTATE_H_DEFINED virtual void draw()=0
Called every frame, where states draw stuff on screen.
virtual int unload()=0
Where every state destroys it's resources.
virtual StateCode update()=0
Called every frame, where states calculate everything that can change.
virtual void load(int stack=0)=0
Where every state initializes it's resources.
Abstract definition of a game state.
StateCode
All possible transitions between states.