My Project
UML Lab
Loading...
Searching...
No Matches
move.h
Go to the documentation of this file.
1#ifndef MAINPROJECT_MOVE_H
2#define MAINPROJECT_MOVE_H
3
7class Move {
8public:
12 Move();
13
21 Move(int startX, int startY, int endX, int endY);
22
27 int getStartX() const;
28
33 int getStartY() const;
34
39 int getEndX() const;
40
45 int getEndY() const;
46
47private:
48 friend class Board;
49 int startX;
50 int startY;
51 int endX;
52 int endY;
53};
54
55#endif //MAINPROJECT_MOVE_H
Represents the game board and its functionality.
Definition board.h:21
Class representing a move in the game.
Definition move.h:7
int endY
Definition move.h:52
int endX
Definition move.h:51
int getEndX() const
Get the ending X coordinate of the move.
Definition move.cpp:38
int getEndY() const
Get the ending Y coordinate of the move.
Definition move.cpp:46
Move()
Default constructor for Move class.
Definition move.cpp:6
int startY
Definition move.h:50
int startX
Definition move.h:49
int getStartX() const
Get the starting X coordinate of the move.
Definition move.cpp:22
int getStartY() const
Get the starting Y coordinate of the move.
Definition move.cpp:30