diff options
Diffstat (limited to 'queen/logic.cpp')
-rw-r--r-- | queen/logic.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp index 5307e6ff4f..e0c25af80d 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -382,4 +382,19 @@ uint16 QueenLogic::findFrame(uint16 obj) { return framenum; } +int16 QueenLogic::gameState(int index) { + if (index >= 0 && index < GAME_STATE_COUNT) + return _gameState[index]; + else + error("[QueenLogic::gameState] invalid index: %i", index); +} + +void QueenLogic::gameState(int index, int16 newValue) { + if (index >= 0 && index < GAME_STATE_COUNT) + _gameState[index] = newValue; + else + error("[QueenLogic::gameState] invalid index: %i", index); +} + + } // End of namespace Queen |