summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/object.h b/src/object.h
index efd7a275..3f913b20 100644
--- a/src/object.h
+++ b/src/object.h
@@ -25,6 +25,9 @@
#define _TMWSERV_OBJECT_H_
+#include <utility>
+
+
namespace tmwserv
{
@@ -107,6 +110,25 @@ class Object
/**
+ * Set the coordinates.
+ *
+ * @param x the x coordinate.
+ * @param y the y coordinate.
+ */
+ void
+ setXY(unsigned int x, unsigned int y);
+
+
+ /**
+ * Get the coordinates.
+ *
+ * @return the coordinates as a pair.
+ */
+ std::pair<unsigned int, unsigned int>
+ getXY(void) const;
+
+
+ /**
* Set the statistics.
*
* @param stats the statistics.