public class NetTurnTracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
currentTurn |
(package private) int |
largestArmy |
(package private) int |
largestArmySize |
(package private) int |
longestRoad |
(package private) GameRound |
round |
Constructor and Description |
---|
NetTurnTracker()
Default constructor, sets everything as if it were the first
turn
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentTurn() |
int |
getLargestArmy() |
int |
getLargestArmySize() |
int |
getLongestRoad() |
GameRound |
getRound() |
void |
setCurrentTurn(int currentTurn) |
void |
setLargestArmy(int largestArmy) |
void |
setLargestArmySize(int size) |
void |
setLongestRoad(int longestRoad) |
void |
setRound(GameRound round) |
GameRound round
int currentTurn
int longestRoad
int largestArmy
int largestArmySize
public NetTurnTracker()
public GameRound getRound()
public void setRound(GameRound round)
round
- sets which round the game is currently onpublic int getCurrentTurn()
public void setCurrentTurn(int currentTurn)
currentTurn
- sets the ID of the player whose turn
it ispublic int getLongestRoad()
public void setLongestRoad(int longestRoad)
longestRoad
- sets the ID of the player who has
the longest roadpublic int getLargestArmy()
public void setLargestArmy(int largestArmy)
largestArmy
- sets the ID of the player who has
the largest armypublic int getLargestArmySize()
public void setLargestArmySize(int size)
largestArmy
- sets the ID of the player who has
the largest army