summaryrefslogtreecommitdiff
path: root/src/game/Tool.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-03 17:26:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-03 17:26:06 (GMT)
commit0e5c3da0f5d932c9b1652b6c55476f467b15a2ce (patch)
tree808187e476ee529cda128c4ebdd50c7b2d797df6 /src/game/Tool.h
parent9260b2c3e8740afae051761067f9afe05c6cdb04 (diff)
downloadpowder-0e5c3da0f5d932c9b1652b6c55476f467b15a2ce.zip
powder-0e5c3da0f5d932c9b1652b6c55476f467b15a2ce.tar.gz
Use plop tool to place single units of an element (Used for Stickman, Fighter), fixes issue 53
Diffstat (limited to 'src/game/Tool.h')
-rw-r--r--src/game/Tool.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/Tool.h b/src/game/Tool.h
index f10d5f7..1b70768 100644
--- a/src/game/Tool.h
+++ b/src/game/Tool.h
@@ -96,6 +96,21 @@ public:
virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position);
};
+class PlopTool: public ElementTool
+{
+public:
+ PlopTool(int id, string name, string description, int r, int g, int b, VideoBuffer * (*textureGen)(int, int, int) = NULL):
+ ElementTool(id, name, description, r, g, b)
+ {
+ }
+ virtual ~PlopTool() {}
+ virtual void Draw(Simulation * sim, Brush * brush, ui::Point position) {}
+ virtual void Click(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 WallTool: public Tool
{
public: