X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=a76bf7e00bc8d2e0b558f6abd99dde0c477dae56;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=1cd54282a345d2ab2ce8b4fb86ee44a512e1bfa5;hpb=67817384452d1d8955169c0dc648774e71ea3abe;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index 1cd5428..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,9 +14,16 @@ 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; @@ -50,4 +51,4 @@ struct GameState { } -#endif /* COMMON_GAMESTATE_H_ */ +#endif