X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FGameState.h;h=55ae6dfb3374e5bfb75d7dec673aaa6e407ee382;hb=988ba6d1b4e18a4ae5d30a892224f76cee2355cc;hp=4080630a21e84e79681c7a029dc8c5fa2bda8c0e;hpb=6dff93b1a6e9b727dbe26747456f4b23efca86da;p=l2e.git diff --git a/src/common/GameState.h b/src/common/GameState.h index 4080630..55ae6df 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;