public class Player
extends java.lang.Object
Constructor and Description |
---|
Player(int player_id,
java.lang.String name)
Constructor of the Player
|
Modifier and Type | Method and Description |
---|---|
int |
getGold() |
int |
getId() |
java.lang.String |
getName() |
Node |
getNodeToBeMapped() |
Node |
getSelectedNode() |
void |
selectNode(Node node)
Sets the selected node to the given node
|
void |
setGold(int amount)
Sets player's gold to the given amount
|
void |
setNodeToBeMapped(Node node)
Sets the node to be mapping to the given node
|
public Player(int player_id, java.lang.String name)
player_id
- - the unique integer associated with this playername
- - the name of the playerpublic int getGold()
public void setGold(int amount)
amount
- - integerpublic int getId()
public java.lang.String getName()
public void selectNode(Node node)
node
- - instance of Nodepublic void setNodeToBeMapped(Node node)
public Node getSelectedNode()
public Node getNodeToBeMapped()