summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-15 20:41:05 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-11 02:39:49 +0200
commit30d2e0c9a16a981c895c070e9f972d577fadc531 (patch)
tree55a3ac596adbc5d93deba2aee0177580c2730c83 /src/game.h
parent3bdb7ebbcc6f7d08ed90f2232f0901b1c0e92d51 (diff)
downloadmana-30d2e0c9a16a981c895c070e9f972d577fadc531.tar.gz
mana-30d2e0c9a16a981c895c070e9f972d577fadc531.tar.bz2
mana-30d2e0c9a16a981c895c070e9f972d577fadc531.tar.xz
mana-30d2e0c9a16a981c895c070e9f972d577fadc531.zip
The shortcuts are now refreshed when reassigning keys.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.h b/src/game.h
index 22e242c9..9e38f928 100644
--- a/src/game.h
+++ b/src/game.h
@@ -24,8 +24,9 @@
#include <string>
+#include "gui/windowmenu.h"
+
class Map;
-class WindowMenu;
/**
* The main class responsible for running the game. The game starts after you
@@ -73,6 +74,12 @@ class Game
int getCurrentTileWidth() const;
int getCurrentTileHeight() const;
+ /**
+ * Update the key shortcuts in the window menu.
+ */
+ void updateWindowMenuCaptions()
+ { mWindowMenu->updatePopUpCaptions(); }
+
private:
int mLastTarget;
bool mDisconnected;