Debian Codegraph @

src/level/LevelInput.h

raw
1 #ifndef HEADER_LEVELINPUT_H
2 #define HEADER_LEVELINPUT_H
3
4 class Level;
5 class Keymap;
6 class KeyStroke;
7
8 #include "GameInput.h"
9
10 /**
11 * Handle input for level.
12 */
13 class LevelInput : public GameInput {
14 private:
15 static const int KEY_SWITCH = 101;
16 static const int KEY_SAVE = 102;
17 static const int KEY_LOAD = 103;
18 static const int KEY_RESTART = 104;
19 static const int KEY_UNDO = 105;
20 static const int KEY_REDO = 106;
21 static const int KEY_SHOW_STEPS = 107;
22 private:
23 Level *getLevel();
24 protected:
25 virtual void specKey(int keyIndex);
26 virtual void specStroke(const KeyStroke &stroke);
27 public:
28 LevelInput(Level *level);
29 virtual void mouseEvent(const MouseStroke &buttons);
30 virtual void keyUp(const KeyStroke &stroke);
31 };
32
33 #endif