X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=a76bf7e00bc8d2e0b558f6abd99dde0c477dae56;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=078da1a3738cba03eeae82eadbe2c8d0711eca54;hpb=f552d26f537af9fa48255bd71cdc1a0a1b860bac;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index 078da1a..a76bf7e 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,16 +14,41 @@ 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; + }; } -#endif /* COMMON_GAMESTATE_H_ */ +#endif