summaryrefslogtreecommitdiff
path: root/plugins/Brushes.h
diff options
context:
space:
mode:
authorPetr Mrázek2012-05-11 07:00:18 +0200
committerPetr Mrázek2012-05-11 07:00:18 +0200
commit92f069e20932b4ee2f781e5049bcab33a1dfed09 (patch)
treedeb2a6e0b08adcce6c43b042e1d6f39fc49f4571 /plugins/Brushes.h
parentfca618ff1baa48ad839317ed6d7479d34f110248 (diff)
downloaddfhack-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.h16
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: