public final class Player extends Object
| Constructor and Description |
|---|
Player(Integer index,
String username,
Integer team,
Integer fields,
Integer army,
boolean dead) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getArmy()
Total army owned by player.
|
Integer |
getFields()
Number of fields owned by player.
|
Integer |
getIndex() |
Integer |
getTeam()
Identifier of a team that player belongs to.
|
String |
getUsername() |
int |
hashCode() |
boolean |
isDead()
True if player has already lost the game.
|
String |
toString() |
Player |
withArmy(Integer army)
Total army owned by player.
|
Player |
withDead(boolean dead)
True if player has already lost the game.
|
Player |
withFields(Integer fields)
Number of fields owned by player.
|
Player |
withIndex(Integer index) |
Player |
withTeam(Integer team)
Identifier of a team that player belongs to.
|
Player |
withUsername(String username) |
public Integer getIndex()
public String getUsername()
public Integer getTeam()
public Integer getFields()
public Integer getArmy()
public boolean isDead()
public Player withDead(boolean dead)
Copyright © 2017. All rights reserved.