net.sf.mud4j.ability
Class CharacterAbility

java.lang.Object
  extended by net.sf.mud4j.ability.CharacterAbility
All Implemented Interfaces:
Ability

public abstract class CharacterAbility
extends java.lang.Object
implements Ability

Defines a character ability.

Author:
Matthew Purland

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

character

protected Character character
Constructor Detail

CharacterAbility

public CharacterAbility(Character character)
Constructor to provide association between character and the ability.

Parameters:
character - Character to associate to the ability.
Method Detail

getCharacter

public Character getCharacter()
Get the character.

Returns:
the character.

run

public abstract void run()
                  throws AbilityException
Run the ability.

Specified by:
run in interface Ability
Throws:
AbilityException - in case the ability encounters a problem or cannot continue.


Copyright © 2006-2007 mud4j. All Rights Reserved.