|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrle.core.vm.PlugInBase
rle.core.board.Thing
rle.core.board.Creature
rle.core.Player
public class Player
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 |
---|
public Player()
Method Detail |
---|
public void setConfig(InfoView view)
setConfig
in interface PlugIn
setConfig
in class Thing
public void setEnergy(int energy)
setEnergy
in class Creature
public void addPlayerTurnListener(PlayerTurnListener cl)
public void removePlayerTurnListener(PlayerTurnListener cl)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |