summaryrefslogtreecommitdiff
path: root/src/game/Tool.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-05 15:59:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-05 15:59:14 (GMT)
commit30f8049efc6efc086509d235df413e4932dab83e (patch)
tree96642c3f8a63e15a40c448c23f5ada446eba673b /src/game/Tool.h
parent9e309135d403f0f99f586015ffd194a8914ae504 (diff)
downloadpowder-30f8049efc6efc086509d235df413e4932dab83e.zip
powder-30f8049efc6efc086509d235df413e4932dab83e.tar.gz
Allow 24bits of var for create_part, add tool for tesc. Fixes #72
Diffstat (limited to 'src/game/Tool.h')
-rw-r--r--src/game/Tool.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Tool.h b/src/game/Tool.h
index aa021fc..bee1fd8 100644
--- a/src/game/Tool.h
+++ b/src/game/Tool.h
@@ -86,6 +86,7 @@ public:
virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position) { }
};
+
class ElementTool: public Tool
{
public:
@@ -97,6 +98,17 @@ public:
virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position);
};
+class Element_TESC_Tool: public ElementTool
+{
+public:
+ Element_TESC_Tool(int id, string name, string description, int r, int g, int b, VideoBuffer * (*textureGen)(int, int, int) = NULL);
+ virtual ~Element_TESC_Tool() {}
+ virtual void Draw(Simulation * sim, Brush * brush, ui::Point position);
+ virtual void DrawLine(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2, bool dragging = false);
+ virtual void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2);
+ virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position);
+};
+
class PlopTool: public ElementTool
{
public: