diff options
Diffstat (limited to 'src/game/GameView.h')
| -rw-r--r-- | src/game/GameView.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h index 1be2d96..9658184 100644 --- a/src/game/GameView.h +++ b/src/game/GameView.h @@ -3,6 +3,8 @@ #include <vector> #include <queue> +#include <deque> +#include <string> #include "GameController.h" #include "GameModel.h" #include "interface/Window.h" @@ -41,6 +43,8 @@ private: //UI Elements vector<ui::Button*> menuButtons; vector<ToolButton*> toolButtons; + deque<string> logEntries; + float lastLogEntry; ui::Button * searchButton; ui::Button * reloadButton; ui::Button * saveSimulationButton; @@ -88,12 +92,22 @@ public: void NotifyColourSelectorColourChanged(GameModel * sender); void NotifyClipboardChanged(GameModel * sender); void NotifyStampChanged(GameModel * sender); + void NotifyLogChanged(GameModel * sender, string entry); virtual void OnMouseMove(int x, int y, int dx, int dy); virtual void OnMouseDown(int x, int y, unsigned button); virtual void OnMouseUp(int x, int y, unsigned button); virtual void OnMouseWheel(int x, int y, int d); virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); virtual void OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt); + + //Top-level handers, for Lua interface + virtual void DoMouseMove(int x, int y, int dx, int dy); + virtual void DoMouseDown(int x, int y, unsigned button); + virtual void DoMouseUp(int x, int y, unsigned button); + virtual void DoMouseWheel(int x, int y, int d); + virtual void DoKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); + virtual void DoKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt); + //virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) {} //virtual void OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt) {} virtual void OnTick(float dt); |
