|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.haphazard.XML.MessageHandler
org.haphazard.system.action.Action
org.haphazard.system.action.CharacterAction
org.haphazard.system.action.Controller
Field Summary |
Fields inherited from class org.haphazard.system.action.CharacterAction |
ATTACK, CARRY, DEFEND, DIE, DROP, mCharacter, MOVE, mTarget, mWorld, NOTHING, SAY, WEAR |
Fields inherited from class org.haphazard.system.action.Action |
mController, mExecutionTime, mTimeStarted |
Fields inherited from class org.haphazard.XML.MessageHandler |
mMessageBuffer |
Constructor Summary | |
Controller(Character character,
Brain brain)
Creates a new instance of Controller |
Method Summary | |
boolean |
perform()
Performs the action |
protected boolean |
performAttack()
Performs the attack |
protected boolean |
performCarry()
Performs carry |
protected boolean |
performDeath()
Performs death |
protected boolean |
performDefend()
|
protected boolean |
performDrop()
Performs drop |
protected boolean |
performMove()
Performs the move action |
protected boolean |
performWear()
Performs wear |
Methods inherited from class org.haphazard.system.action.CharacterAction |
attack, carry, defend, die, drop, getActionType, getCharacter, move, move, performSay, say, setCharacter, wear |
Methods inherited from class org.haphazard.system.action.Action |
equals, start |
Methods inherited from class org.haphazard.XML.MessageHandler |
addMessage, getNextMessage, hasMessage |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Controller(Character character, Brain brain)
character
- The character to controlbrain
- The brain to control itMethod Detail |
public boolean perform()
CharacterAction
perform
in class CharacterAction
protected boolean performMove()
CharacterAction
performMove
in class CharacterAction
protected boolean performAttack()
CharacterAction
performAttack
in class CharacterAction
protected boolean performDefend()
performDefend
in class CharacterAction
protected boolean performDeath()
CharacterAction
performDeath
in class CharacterAction
protected boolean performWear()
CharacterAction
performWear
in class CharacterAction
protected boolean performCarry()
CharacterAction
performCarry
in class CharacterAction
protected boolean performDrop()
CharacterAction
performDrop
in class CharacterAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |