Class representing a move in the game.
More...
#include <move.h>
|
| | Move () |
| | Default constructor for Move class.
|
| |
| | Move (int startX, int startY, int endX, int endY) |
| | Constructor for Move class.
|
| |
| int | getStartX () const |
| | Get the starting X coordinate of the move.
|
| |
| int | getStartY () const |
| | Get the starting Y coordinate of the move.
|
| |
| int | getEndX () const |
| | Get the ending X coordinate of the move.
|
| |
| int | getEndY () const |
| | Get the ending Y coordinate of the move.
|
| |
Class representing a move in the game.
◆ Move() [1/2]
Default constructor for Move class.
◆ Move() [2/2]
| Move::Move |
( |
int | startX, |
|
|
int | startY, |
|
|
int | endX, |
|
|
int | endY ) |
Constructor for Move class.
- Parameters
-
| startX | Starting X coordinate. |
| startY | Starting Y coordinate. |
| endX | Ending X coordinate. |
| endY | Ending Y coordinate. |
◆ getEndX()
| int Move::getEndX |
( |
| ) |
const |
Get the ending X coordinate of the move.
- Returns
- Ending X coordinate.
◆ getEndY()
| int Move::getEndY |
( |
| ) |
const |
Get the ending Y coordinate of the move.
- Returns
- Ending Y coordinate.
◆ getStartX()
| int Move::getStartX |
( |
| ) |
const |
Get the starting X coordinate of the move.
- Returns
- Starting X coordinate.
◆ getStartY()
| int Move::getStartY |
( |
| ) |
const |
Get the starting Y coordinate of the move.
- Returns
- Starting Y coordinate.
◆ Board
◆ endX
◆ endY
◆ startX
◆ startY
The documentation for this class was generated from the following files:
- /Users/bogdanresetko/Desktop/projects2024/дфддфдф/mainproject/move.h
- /Users/bogdanresetko/Desktop/projects2024/дфддфдф/mainproject/move.cpp