diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-27 07:25:45 +0100 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-01-27 07:25:45 +0100 |
commit | 5f010b71415a7dc0337c67cac4666eacdf472751 (patch) | |
tree | 03b71ee15e3e2a98d94c236f03361846c28d2d9b /src/GameState.hpp | |
parent | GameState double-buffering (diff) | |
download | AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar.gz AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar.bz2 AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar.lz AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar.xz AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.tar.zst AltCraft-5f010b71415a7dc0337c67cac4666eacdf472751.zip |
Diffstat (limited to '')
-rw-r--r-- | src/GameState.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GameState.hpp b/src/GameState.hpp index 41e7080..8318c8a 100644 --- a/src/GameState.hpp +++ b/src/GameState.hpp @@ -96,27 +96,27 @@ public: return player; } - inline World &GetWorld() { + inline const World &GetWorld() const { return world; } - inline TimeStatus &GetTimeStatus() { + inline const TimeStatus &GetTimeStatus() const { return timeStatus; } - inline GameStatus &GetGameStatus() { + inline const GameStatus &GetGameStatus() const { return gameStatus; } - inline PlayerStatus &GetPlayerStatus() { + inline const PlayerStatus &GetPlayerStatus() const { return playerStatus; } - inline SelectionStatus &GetSelectionStatus() { + inline const SelectionStatus &GetSelectionStatus() const { return selectionStatus; } - inline Window &GetInventory() { + inline const Window &GetInventory() const { return playerInventory; } }; |