simulations.core.strategy
Class PlayerIntElement

java.lang.Object
  extended by simulations.core.strategy.PlayerIntElement

public class PlayerIntElement
extends java.lang.Object

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

PlayerIntElement

public PlayerIntElement()
Creates a new instance of PlayerIntElement


PlayerIntElement

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

Parameters:
player - The player
nb - The associated integer
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()
Override of toString() method

Overrides:
toString in class java.lang.Object
Returns:
the player and the nb