|
||||||||||
| 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 it| Method Detail |
public boolean perform()
CharacterAction
perform in class CharacterActionprotected boolean performMove()
CharacterAction
performMove in class CharacterActionprotected boolean performAttack()
CharacterAction
performAttack in class CharacterActionprotected boolean performDefend()
performDefend in class CharacterActionprotected boolean performDeath()
CharacterAction
performDeath in class CharacterActionprotected boolean performWear()
CharacterAction
performWear in class CharacterActionprotected boolean performCarry()
CharacterAction
performCarry in class CharacterActionprotected boolean performDrop()
CharacterAction
performDrop in class CharacterAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||