summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-15 23:06:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-15 23:06:46 +0300
commitf03bacd61c383ff642694489e0e39c43d5dd893a (patch)
tree57d2680913efe6b76e604ba384ade6a05adfec16 /src/game.h
parent8149254fa9a1f85d7a91c76250dfb7e5ce67d453 (diff)
downloadmanaplus-f03bacd61c383ff642694489e0e39c43d5dd893a.tar.gz
manaplus-f03bacd61c383ff642694489e0e39c43d5dd893a.tar.bz2
manaplus-f03bacd61c383ff642694489e0e39c43d5dd893a.tar.xz
manaplus-f03bacd61c383ff642694489e0e39c43d5dd893a.zip
Split Game::handleInput to small functions.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
index 2205e30de..4e5337d29 100644
--- a/src/game.h
+++ b/src/game.h
@@ -78,6 +78,14 @@ class Game
void handleInput();
+ bool handleOutfitsKeys(SDL_Event &event, bool &used);
+
+ bool handleSwitchKeys(SDL_Event &event, bool &used);
+
+ void handleMoveAndAttack(SDL_Event &event, bool wasDown);
+
+ void handleActive(SDL_Event &event);
+
void changeMap(const std::string &mapName);
/**