public class Player
extends java.lang.Object
Constructor and Description |
---|
Player()
Empty constructor required by kryo
|
Player(RobotID robotID,
java.lang.String name)
Instantiates a new player
|
Modifier and Type | Method and Description |
---|---|
ProgrammingCardDeck |
getLockedProgrammingCardDeck()
Gets the player deck with locked cards
|
java.lang.String |
getName()
Gets the name of the player
|
boolean |
getPowerDownNextRound()
Gets the players power down status
|
java.util.List<ProgrammingCard> |
getProgram()
Gets the players program
|
ProgrammingCardDeck |
getProgrammingCardDeck()
Gets the player hand/deck
|
RobotID |
getRobotID()
Gets the RobotID of a player
|
void |
setPowerDownNextRound(boolean powerDownStatus)
Sets the power down status
|
void |
setProgram(java.util.List<ProgrammingCard> cardList)
Sets the Players program to the given list of programing cards
|
void |
setProgrammingCardDeck(ProgrammingCardDeck playerDeck)
Sets the players deck to the given deck
|
public Player(RobotID robotID, java.lang.String name)
robotID
- the global identifier of the robotname
- the unique name of the playerpublic Player()
public RobotID getRobotID()
public java.lang.String getName()
public java.util.List<ProgrammingCard> getProgram()
public void setProgram(java.util.List<ProgrammingCard> cardList)
cardList
- list the size of 5 with programing cardspublic ProgrammingCardDeck getProgrammingCardDeck()
public void setProgrammingCardDeck(ProgrammingCardDeck playerDeck)
playerDeck
- A deck of cards given to the playerpublic ProgrammingCardDeck getLockedProgrammingCardDeck()
public boolean getPowerDownNextRound()
public void setPowerDownNextRound(boolean powerDownStatus)
powerDownStatus
- Whether the player is to take power down next turn