Merge pull request #1045 from diath/dft_cpy_mov_ctor

Add default copy constructors to Color and Position classes
This commit is contained in:
Konrad Kuśnierz
2019-10-10 08:13:50 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ public:
Position() : x(65535), y(65535), z(255) { }
Position(uint16 x, uint16 y, uint8 z) : x(x), y(y), z(z) { }
Position(const Position &position) = default;
Position translatedToDirection(Otc::Direction direction) {
Position pos = *this;
switch(direction) {