summaryrefslogtreecommitdiffstats
path: root/PositionI.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'PositionI.hpp')
-rw-r--r--PositionI.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/PositionI.hpp b/PositionI.hpp
index 4706454..25455ef 100644
--- a/PositionI.hpp
+++ b/PositionI.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <ostream>
+
class PositionI {
public:
PositionI(int x, int z, int y);
@@ -37,6 +39,11 @@ public:
bool operator>=(const PositionI &rhs) const;
PositionI operator-(const PositionI &other)const;
+ PositionI operator*(int other)const;
+ PositionI operator*(const PositionI &other)const;
+ PositionI operator/(int other)const;
+
+ friend std::ostream &operator<<(std::ostream &os, const PositionI &i);
private:
int m_x, m_y, m_z;