|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimulations.core.history.PlayerStatElement
public class PlayerStatElement
This class is used to memorize the number of time that a player attack another the number of times that a player ask support to another the number of times that a player accept to support my attack
| Constructor Summary | |
|---|---|
PlayerStatElement(Player player,
int nb)
Creates a new instance of AttackedPlayerElement |
|
| 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()
Redefinition of toString method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlayerStatElement(Player player,
int nb)
player - The concerned playernb - The number associated to memorize| Method 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 | ||||||||