X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=a76bf7e00bc8d2e0b558f6abd99dde0c477dae56;hb=a55161b97cf529be58eb3a52fe5167ab994cd906;hp=4080630a21e84e79681c7a029dc8c5fa2bda8c0e;hpb=6dff93b1a6e9b727dbe26747456f4b23efca86da;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index 4080630..a76bf7e 100644 --- a/src/common/GameState.h +++ b/src/common/GameState.h @@ -19,8 +19,10 @@ struct GameState { int partySize; Capsule capsules[7]; + int capsule; int NumCapsules() const { return 7; } - Capsule *capsule; + Capsule &GetCapsule() { return capsules[capsule]; } + const Capsule &GetCapsule() const { return capsules[capsule]; } Inventory inventory; @@ -49,4 +51,4 @@ struct GameState { } -#endif /* COMMON_GAMESTATE_H_ */ +#endif