diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index 13bd2f2..63c2a97 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp @@ -1071,7 +1071,7 @@ void BlockGame::SetGameOver() { } } -bool BlockGame::GetAIenabled() { +bool BlockGame::GetAIenabled() const { return AI_Enabled; } @@ -1835,7 +1835,7 @@ void BlockGame::Update() { } } -bool BlockGame::IsNearDeath() { +bool BlockGame::IsNearDeath() const { if ((TowerHeight>12)&&(!puzzleMode)&&(!bGameOver)) { return true; } diff --git a/source/code/BlockGame.hpp b/source/code/BlockGame.hpp index 7c446f2..3741417 100644 --- a/source/code/BlockGame.hpp +++ b/source/code/BlockGame.hpp @@ -190,8 +190,8 @@ public: bool CreateGreyGarbage(); //prints "Game Over" and ends game void SetGameOver(); - bool GetAIenabled(); - bool IsNearDeath(); + bool GetAIenabled() const; + bool IsNearDeath() const; //Moves the cursor, receaves N,S,E or W as a char an moves as desired void MoveCursor(char way); //switches the two blocks at the cursor position, unless game over