diff options
| author | Petr Mrázek | 2012-05-11 07:00:18 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2012-05-11 07:00:18 +0200 |
| commit | 92f069e20932b4ee2f781e5049bcab33a1dfed09 (patch) | |
| tree | deb2a6e0b08adcce6c43b042e1d6f39fc49f4571 /plugins/Brushes.h | |
| parent | fca618ff1baa48ad839317ed6d7479d34f110248 (diff) | |
| download | dfhack-92f069e20932b4ee2f781e5049bcab33a1dfed09.tar.gz dfhack-92f069e20932b4ee2f781e5049bcab33a1dfed09.tar.bz2 dfhack-92f069e20932b4ee2f781e5049bcab33a1dfed09.tar.xz | |
Brush output lists numbers, update xml.
Diffstat (limited to 'plugins/Brushes.h')
| -rw-r--r-- | plugins/Brushes.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/Brushes.h b/plugins/Brushes.h index a525d279..25f3a511 100644 --- a/plugins/Brushes.h +++ b/plugins/Brushes.h @@ -1,4 +1,9 @@ #pragma once +#include <llimits.h> +#include <sstream> +#include <string> +#include <stack> +#include <set> typedef vector <df::coord> coord_vec; class Brush @@ -60,10 +65,15 @@ public: }; ~RectangleBrush(){}; std::string str() const { - if (x_ == 1 && y_ == 1 && z_ == 1) { + if (x_ == 1 && y_ == 1 && z_ == 1) + { return "point"; - } else { - return "rectangle"; + } + else + { + std::ostringstream ss; + ss << "rect: " << x_ << "/" << y_ << "/" << z_ << std::endl; + return ss.str(); } } private: |
