summaryrefslogtreecommitdiff
path: root/src/point.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/point.cpp')
-rw-r--r--src/point.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/point.cpp b/src/point.cpp
new file mode 100644
index 0000000..5eda20b
--- /dev/null
+++ b/src/point.cpp
@@ -0,0 +1,37 @@
+#include <comppoint.h>
+
+CompPoint::CompPoint () :
+ mX (0),
+ mY (0)
+{
+}
+
+CompPoint::CompPoint (int x, int y) :
+ mX (x),
+ mY (y)
+{
+}
+
+int
+CompPoint::x ()
+{
+ return mX;
+}
+
+int
+CompPoint::y ()
+{
+ return mY;
+}
+
+void
+CompPoint::setX (int x)
+{
+ mX = x;
+}
+
+void
+CompPoint::setY (int y)
+{
+ mY = y;
+}