Package it.polimi.ingsw.server.model
Class Board
java.lang.Object
it.polimi.ingsw.server.model.Board
public class Board
extends java.lang.Object
Represents the Board of the game.
Contains the cells where the game will be played on.
-
Field Details
-
SIDE
public static final int SIDE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Board
public Board()
-
-
Method Details
-
findCell
Used to find one specific cell on the board.- Parameters:
x- Row of the board.y- Column of the board.- Returns:
- Returns cell if contained in board, null otherwise.
-
isInBoard
public boolean isInBoard(int x, int y)Finds out whether a position is in the board or not.- Parameters:
x- Coordinate x of the board.y- Coordinate y of the board.- Returns:
- true if contained, false otherwise.
-