diff options
| author | Simon 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) |
| commit | 0e5c3da0f5d932c9b1652b6c55476f467b15a2ce (patch) | |
| tree | 808187e476ee529cda128c4ebdd50c7b2d797df6 /src/game/Tool.cpp | |
| parent | 9260b2c3e8740afae051761067f9afe05c6cdb04 (diff) | |
| download | powder-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.cpp')
| -rw-r--r-- | src/game/Tool.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Tool.cpp b/src/game/Tool.cpp index 3525876..43c2800 100644 --- a/src/game/Tool.cpp +++ b/src/game/Tool.cpp @@ -151,4 +151,9 @@ void Element_LIGH_Tool::Draw(Simulation * sim, Brush * brush, ui::Point position sim->parts[p].life = 55; sim->parts[p].temp = sim->parts[p].life*150; // temperature of the lighting shows the power of the lighting } +} + +void PlopTool::Click(Simulation * sim, Brush * brush, ui::Point position) +{ + sim->create_part(-1, position.X, position.Y, toolID); }
\ No newline at end of file |
