|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.core.strategy.PlayerIntElement
public class PlayerIntElement
This class is used to store an int associated to a player
Constructor Summary | |
---|---|
PlayerIntElement()
Creates a new instance of PlayerIntElement |
|
PlayerIntElement(Player player,
int nb)
Creates a new instance of PlayerIntElement |
Method Summary | |
---|---|
int |
getNb()
Getter for property nb. |
Player |
getPlayer()
Getter for property player. |
void |
setNb(int nb)
Setter for property nb. |
void |
setPlayer(Player player)
Setter for property player. |
java.lang.String |
toString()
Override of toString() method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlayerIntElement()
public PlayerIntElement(Player player, int nb)
player
- The playernb
- The associated integerMethod Detail |
---|
public int getNb()
public void setNb(int nb)
nb
- New value of property nb.public Player getPlayer()
public void setPlayer(Player player)
player
- New value of property player.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |