rle.core
Class Player

java.lang.Object
  extended by rle.core.vm.PlugInBase
      extended by rle.core.board.Thing
          extended by rle.core.board.Creature
              extended by rle.core.Player
All Implemented Interfaces:
java.lang.Cloneable, RuntimeDataListener, PlugIn

public class Player
extends Creature

Class representing the player. This class is where it's @.


Field Summary
 
Fields inherited from class rle.core.board.Creature
ai, energy, itemContainers
 
Fields inherited from class rle.core.board.Thing
attributes, data, enclosed, enclosing, locator, temporaryCharms
 
Fields inherited from class rle.core.vm.PlugInBase
config, context, parameters
 
Constructor Summary
Player()
           
 
Method Summary
 void addPlayerTurnListener(PlayerTurnListener cl)
           
 void removePlayerTurnListener(PlayerTurnListener cl)
           
 void setConfig(InfoView view)
          Overridden to configure player's starting values.
 void setEnergy(int energy)
          Overridden to fire a PlayerTurnEnded() event when energy is set from above to below 1000.
 
Methods inherited from class rle.core.board.Creature
addItemContainer, getAi, getEnergy, getItemContainer, itemContainerKeys, removeItemContainer, setAi
 
Methods inherited from class rle.core.board.Thing
addThingListener, attributeKeySet, attributeMap, checkAttribute, clone, dataChange, enclosingObject, fireLocationChange, getAttribute, getId, getRuntimeData, getSize, getTemporaryCharm, locator, putAttribute, putTemporaryCharm, removeAttribute, removeTemporaryCharm, removeThingListener, setEnclosingObject, setRuntimeData, setSize, temporaryCharmKeySet, toString
 
Methods inherited from class rle.core.vm.PlugInBase
config, getContext, getParameters, paramMap, setParameters
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Player

public Player()
Method Detail

setConfig

public void setConfig(InfoView view)
Overridden to configure player's starting values.

Specified by:
setConfig in interface PlugIn
Overrides:
setConfig in class Thing

setEnergy

public void setEnergy(int energy)
Overridden to fire a PlayerTurnEnded() event when energy is set from above to below 1000.

Overrides:
setEnergy in class Creature

addPlayerTurnListener

public void addPlayerTurnListener(PlayerTurnListener cl)

removePlayerTurnListener

public void removePlayerTurnListener(PlayerTurnListener cl)