cleanup & architectural changes
This commit is contained in:
+3
-1
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "tilePosition.h"
|
||||
#include "line.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -30,6 +29,9 @@ private:
|
||||
public:
|
||||
Field(size_t fieldSize);
|
||||
|
||||
void updateScore();
|
||||
Score getScore();
|
||||
|
||||
bool canMove() const;
|
||||
bool move(Direction direction);
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
|
||||
Position() : x(0), y(0) {}
|
||||
Position(int x, int y) : x(x), y(y) {}
|
||||
};
|
||||
@@ -8,4 +8,12 @@ enum class Direction {
|
||||
down,
|
||||
left,
|
||||
right
|
||||
};
|
||||
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
|
||||
Position() : x(0), y(0) {}
|
||||
Position(int x, int y) : x(x), y(y) {}
|
||||
};
|
||||
Reference in New Issue
Block a user