summaryrefslogtreecommitdiff
path: root/src/cat/CommandInterface.h
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-08 02:05:58 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-08 02:05:58 (GMT)
commit158b05402348f6eae3ed08f40676c1b8adf0b268 (patch)
tree2810c368e25d27ccf5e086935073ba501332e938 /src/cat/CommandInterface.h
parent986173af4c1aec6308ea6f6f2e126b65eeaf37a3 (diff)
downloadpowder-158b05402348f6eae3ed08f40676c1b8adf0b268.zip
powder-158b05402348f6eae3ed08f40676c1b8adf0b268.tar.gz
fix tpt.selectedl/r/a, but it returns the string identifier now instead of an id
Diffstat (limited to 'src/cat/CommandInterface.h')
-rw-r--r--src/cat/CommandInterface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h
index e6119d3..5b9c31f 100644
--- a/src/cat/CommandInterface.h
+++ b/src/cat/CommandInterface.h
@@ -14,6 +14,7 @@
class GameModel;
class GameController;
+class Tool;
class CommandInterface {
protected:
std::string lastError;
@@ -28,6 +29,7 @@ public:
void Log(LogType type, std::string message);
//void AttachGameModel(GameModel * m);
virtual bool OnBrushChanged(int brushType, int rx, int ry) {return true;}
+ virtual bool OnActiveToolChanged(int toolSelection, Tool * tool) {return true;}
virtual bool OnMouseMove(int x, int y, int dx, int dy) {return true;}
virtual bool OnMouseDown(int x, int y, unsigned button) {return true;}
virtual bool OnMouseUp(int x, int y, unsigned button) {return true;}