simulations.core.history
Class PlayerStatElement

java.lang.Object
  extended by simulations.core.history.PlayerStatElement

public class PlayerStatElement
extends java.lang.Object

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

PlayerStatElement

public PlayerStatElement(Player player,
                         int nb)
Creates a new instance of AttackedPlayerElement

Parameters:
player - The concerned player
nb - The number associated to memorize
Method Detail

getNb

public int getNb()
Getter for property nb.

Returns:
Value of property nb.

setNb

public void setNb(int nb)
Setter for property nb.

Parameters:
nb - New value of property nb.

getPlayer

public Player getPlayer()
Getter for property player.

Returns:
Value of property player.

setPlayer

public void setPlayer(Player player)
Setter for property player.

Parameters:
player - New value of property player.

toString

public java.lang.String toString()
Redefinition of toString method

Overrides:
toString in class java.lang.Object
Returns:
The String representing the element