diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-13 16:01:56 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-13 16:01:56 +0200 |
commit | 1563ae5be6bc130a9b3a23464f7e28fdb1e87da3 (patch) | |
tree | b1f65a03827494fa78e320b134f4cc7df54754bb /PositionI.hpp | |
parent | 2017-05-12 (diff) | |
download | AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar.gz AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar.bz2 AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar.lz AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar.xz AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.tar.zst AltCraft-1563ae5be6bc130a9b3a23464f7e28fdb1e87da3.zip |
Diffstat (limited to '')
-rw-r--r-- | PositionI.hpp | 7 |
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; |