net.sf.mud4j.ability
Class LocationAbility

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

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

Abilities for locations. The ability will be run on a location.

Author:
Matthew Purland

Constructor Summary
LocationAbility(Location location)
          Constructor to create a LocationAbility to associate the ability with a location.
 
Method Summary
 Location getLocation()
          Get the location for the ability.
abstract  void run()
          Run the ability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationAbility

public LocationAbility(Location location)
Constructor to create a LocationAbility to associate the ability with a location.

Parameters:
location - Location to associate with the specific ability.
Method Detail

getLocation

public Location getLocation()
Get the location for the ability.

Returns:
Returns the location that is associated with the ability.

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.