java.lang.Object
it.polimi.ingsw.dataClass.TurnData
public class TurnData
extends java.lang.Object
A data class for Turn
It can be useful to send game information over the network, without any reference to the actual game object.
-
Constructor Summary
Constructors Constructor Description TurnData(int turnNumber, PlayerData currentPlayer)Default constructor -
Method Summary
Modifier and Type Method Description PlayerDatagetCurrentPlayer()currentPlayer getterintgetTurnNumber()turnNumber getter
-
Constructor Details
-
TurnData
Default constructor- Parameters:
turnNumber- the turn numbercurrentPlayer- the player currently playing
-
-
Method Details
-
getTurnNumber
public int getTurnNumber()turnNumber getter- Returns:
- the turn number
-
getCurrentPlayer
currentPlayer getter- Returns:
- the player currently playing
-