X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=a76bf7e00bc8d2e0b558f6abd99dde0c477dae56;hb=f6548c2aabfb371bd81382d7800e6e2cdb826e06;hp=4e2570d8fb8ea90c336169cb8e6a6b1c2ebf161e;hpb=60e0fe29ce6cd033edc78b181d9d07fa72c11172;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index 4e2570d..a76bf7e 100644 --- a/src/common/GameState.h +++ b/src/common/GameState.h @@ -14,11 +14,15 @@ struct GameState { GameState(); Hero heroes[7]; + int NumHeroes() const { return 7; } Hero *party[4]; int partySize; Capsule capsules[7]; - Capsule *capsule; + int capsule; + int NumCapsules() const { return 7; } + Capsule &GetCapsule() { return capsules[capsule]; } + const Capsule &GetCapsule() const { return capsules[capsule]; } Inventory inventory; @@ -47,4 +51,4 @@ struct GameState { } -#endif /* COMMON_GAMESTATE_H_ */ +#endif