summaryrefslogtreecommitdiff
path: root/src/simulation/Sign.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-25 12:57:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-25 12:57:23 (GMT)
commitab8f382acc863d8d71ddb75b3161629cf5dd8d64 (patch)
tree18744659d28c8fd3556a8c8bb3e17b308aeadc75 /src/simulation/Sign.h
parent04b007b36f3341d0906b64f8f59eab36ba58988a (diff)
downloadpowder-ab8f382acc863d8d71ddb75b3161629cf5dd8d64.zip
powder-ab8f382acc863d8d71ddb75b3161629cf5dd8d64.tar.gz
Sign tool can now edit existing signs
Diffstat (limited to 'src/simulation/Sign.h')
-rw-r--r--src/simulation/Sign.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/simulation/Sign.h b/src/simulation/Sign.h
index 1b8a68c..14b7dac 100644
--- a/src/simulation/Sign.h
+++ b/src/simulation/Sign.h
@@ -9,19 +9,18 @@
#ifndef The_Powder_Toy_Sign_h
#define The_Powder_Toy_Sign_h
+#include <string>
+
class sign
{
public:
enum Justification { Left = 0, Centre = 1, Right = 2 };
- sign(std::string text_, int x_, int y_, Justification justification_):
- text(text_),
- x(x_),
- y(y_),
- ju(justification_)
- {}
+ sign(std::string text_, int x_, int y_, Justification justification_);
int x, y;
Justification ju;
std::string text;
+
+ void pos(int & x0, int & y0, int & w, int & h);
};
#endif