net.sf.mud4j.effect
Class AbstractLocationEffect

java.lang.Object
  extended by net.sf.mud4j.effect.AbstractLocationEffect
All Implemented Interfaces:
Effect, LocationEffect

public class AbstractLocationEffect
extends java.lang.Object
implements LocationEffect

Abstract location effect.

Author:
Matthew Purlands

Constructor Summary
AbstractLocationEffect(Location location)
           
 
Method Summary
 void apply()
          Apply effect on the target.
 java.lang.String getName()
          Get name of the effect
 boolean hasExpired()
          Determine if the effect has expired duration.
 boolean isPermanent()
          Determine if the effect is permanent.
 void setLocation(Location location)
          
 void undo()
          Undo the effect from the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLocationEffect

public AbstractLocationEffect(Location location)
Method Detail

setLocation

public void setLocation(Location location)

Specified by:
setLocation in interface LocationEffect

apply

public void apply()
Apply effect on the target.

Specified by:
apply in interface Effect

getName

public java.lang.String getName()
Get name of the effect

Specified by:
getName in interface Effect

hasExpired

public boolean hasExpired()
Determine if the effect has expired duration.

Specified by:
hasExpired in interface Effect
Returns:
Returns whether the effect has expired yet.

undo

public void undo()
Undo the effect from the target.

Specified by:
undo in interface Effect

isPermanent

public boolean isPermanent()
Determine if the effect is permanent. Permanent status means that the effect cannot be removed.

Specified by:
isPermanent in interface Effect


Copyright © 2006-2007 mud4j. All Rights Reserved.