Add: complete javaDOC
This commit is contained in:
@@ -42,6 +42,11 @@ public class Player implements Serializable {
|
||||
return UserName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the totem assigned to this player.
|
||||
*
|
||||
* @return this player's totem.
|
||||
*/
|
||||
public Totems getTotem() {
|
||||
return totem;
|
||||
}
|
||||
@@ -81,12 +86,19 @@ public class Player implements Serializable {
|
||||
private ArrayList<Shaman> shamans;
|
||||
private ArrayList<Hunter> hunters;
|
||||
|
||||
/** @return this player's building cards. */
|
||||
public ArrayList<BuildingCard> getBuildingCards() { return buildingCards; }
|
||||
/** @return this player's Artist character cards. */
|
||||
public ArrayList<Artist> getArtists() { return artists; }
|
||||
/** @return this player's Builder character cards. */
|
||||
public ArrayList<Builder> getBuilders() { return builders; }
|
||||
/** @return this player's Inventor character cards. */
|
||||
public ArrayList<Inventor> getInventors() { return inventors; }
|
||||
/** @return this player's Gatherer character cards. */
|
||||
public ArrayList<Gatherer> getGatherers() { return gatherers; }
|
||||
/** @return this player's Shaman character cards. */
|
||||
public ArrayList<Shaman> getShamans() { return shamans; }
|
||||
/** @return this player's Hunter character cards. */
|
||||
public ArrayList<Hunter> getHunters() { return hunters; }
|
||||
|
||||
/**
|
||||
@@ -132,6 +144,11 @@ public class Player implements Serializable {
|
||||
this.FoodValue += Value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the totem for this player.
|
||||
*
|
||||
* @param totem the totem to assign.
|
||||
*/
|
||||
public void setTotem(Totems totem) {
|
||||
this.totem = totem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user