00001 #ifndef HEADER_LEVELINPUT_H
00002 #define HEADER_LEVELINPUT_H
00003
00004 class Level;
00005 class Keymap;
00006 class KeyStroke;
00007
00008 #include "GameInput.h"
00009
00010
00011
00012
00013 class LevelInput : public GameInput {
00014 private:
00015 static const int KEY_SWITCH = 101;
00016 static const int KEY_SAVE = 102;
00017 static const int KEY_LOAD = 103;
00018 static const int KEY_RESTART = 104;
00019 static const int KEY_SHOW_STEPS = 105;
00020 private:
00021 Level *getLevel();
00022 protected:
00023 virtual void specKey(int keyIndex);
00024 virtual void specStroke(const KeyStroke &stroke);
00025 public:
00026 LevelInput(Level *level);
00027 virtual void mouseEvent(const MouseStroke &buttons);
00028 };
00029
00030 #endif