X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=55ae6dfb3374e5bfb75d7dec673aaa6e407ee382;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=fca50c1f846138168edd40cba990363ad49b6ea8;hpb=0ad5ca97b5df217329bc319d62564a9f46ba11d7;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index fca50c1..55ae6df 100644 --- a/src/common/GameState.h +++ b/src/common/GameState.h @@ -1,13 +1,7 @@ -/* - * GameState.h - * - * Created on: Oct 7, 2012 - * Author: holy - */ - #ifndef COMMON_GAMESTATE_H_ #define COMMON_GAMESTATE_H_ +#include "Capsule.h" #include "Hero.h" #include "Inventory.h" @@ -20,11 +14,38 @@ struct GameState { GameState(); Hero heroes[7]; + int NumHeroes() const { return 7; } Hero *party[4]; + int partySize; + + Capsule capsules[7]; + int capsule; + int NumCapsules() const { return 7; } + Capsule &GetCapsule() { return capsules[capsule]; } + const Capsule &GetCapsule() const { return capsules[capsule]; } Inventory inventory; Uint32 money; + Uint32 time; + + enum MessageSpeed { + MESSAGE_SPEED_FAST, + MESSAGE_SPEED_NORMAL, + MESSAGE_SPEED_SLOW, + }; + enum Cursor { + CURSOR_CLEAR, + CURSOR_MEMORY, + }; + enum Music { + MUSIC_STEREO, + MUSIC_MONO, + }; + int messageSpeed; + int battleCursor; + int statusCursor; + int music; };