|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mud4j.ability.CharacterAbility
public abstract class CharacterAbility
Defines a character ability.
Field Summary | |
---|---|
protected Character |
character
|
Constructor Summary | |
---|---|
CharacterAbility(Character character)
Constructor to provide association between character and the ability. |
Method Summary | |
---|---|
Character |
getCharacter()
Get the character. |
abstract void |
run()
Run the ability. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Character character
Constructor Detail |
---|
public CharacterAbility(Character character)
character
- Character to associate to the ability.Method Detail |
---|
public Character getCharacter()
public abstract void run() throws AbilityException
run
in interface Ability
AbilityException
- in case the ability encounters a problem or
cannot continue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |