summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 02:48:32 +0300
commitab596ef3f4215f792feaa9ca1dfe5acb74c67328 (patch)
treeac5a4f31e2fa9c784d7de8d817654d47e21ccac2 /src/game.h
parent399f264360f6e8dfa31d0c3ff7d72aad8033888d (diff)
downloadmv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.gz
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.bz2
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.tar.xz
mv-ab596ef3f4215f792feaa9ca1dfe5acb74c67328.zip
Add const to some classes.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game.h b/src/game.h
index 6fc42be42..5ea45863a 100644
--- a/src/game.h
+++ b/src/game.h
@@ -83,7 +83,7 @@ class Game
void handleMove();
- void handleActive(SDL_Event &event);
+ void handleActive(const SDL_Event &event);
void changeMap(const std::string &mapName);
@@ -107,17 +107,17 @@ class Game
static void closeDialogs();
- void videoResized(int width, int height);
+ void videoResized(const int width, const int height) const;
- bool getValidSpeed()
+ bool getValidSpeed() const
{ return mValidSpeed; }
static bool createScreenshot();
- static bool saveScreenshot(SDL_Surface *screenshot);
+ static bool saveScreenshot(SDL_Surface *const screenshot);
private:
- void updateHistory(SDL_Event &event);
+ void updateHistory(const SDL_Event &event);
void checkKeys();