Package it.polimi.ingsw.model.track
Class Square
java.lang.Object
it.polimi.ingsw.model.track.Square
public class Square
extends java.lang.Object
Represents a single cell of the track
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetActive()getter of activebooleangetRed()getter of redintgetVictoryPoints()getter of victoryPointsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Square
public Square()constructor of the class instances of this class are made with a json file -
Square
public Square(int victoryPoints, boolean red, int active)
-
-
Method Details
-
getRed
public boolean getRed()getter of red- Returns:
- if the current square is red or isn't
-
getActive
public int getActive()getter of active- Returns:
- an active zone value (it could be 0,1,2,3)
-
getVictoryPoints
public int getVictoryPoints()getter of victoryPoints- Returns:
- victory point's value related to the current square
-