wyvern.kernel.motion
Class NoOpShapeChanger
java.lang.Object
wyvern.kernel.motion.AxisShapeChanger
wyvern.kernel.motion.NoOpShapeChanger
- All Implemented Interfaces:
- AddRemoveNotify, Command, Deformer, DirectionChooser
- public class NoOpShapeChanger
- extends AxisShapeChanger
If you need to override a monster's "deformer" and/or "dirs-appr"
properties, rather than removing the property (which is dangerous),
you can put a transient property of type NoOpShapeChanger in their
list.
- Version:
- 1.0, Oct 13, 1998
- Author:
- Steve Yegge
Method Summary |
java.util.List |
getDestination(GameObject agent,
int dir,
Point offsets)
A stateless (and therefore unsynchronized) implementation of
getDestination that objects can delegate to. |
void |
notifyAdd(PropertyList obj)
Notifies the property that it's being added. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpShapeChanger
public NoOpShapeChanger()
getDestination
public java.util.List getDestination(GameObject agent,
int dir,
Point offsets)
- A stateless (and therefore unsynchronized) implementation of
getDestination that objects can delegate to.
- Specified by:
getDestination
in interface Deformer
- Overrides:
getDestination
in class AxisShapeChanger
notifyAdd
public void notifyAdd(PropertyList obj)
- Notifies the property that it's being added.
- Specified by:
notifyAdd
in interface AddRemoveNotify
- Overrides:
notifyAdd
in class AxisShapeChanger
- Parameters:
obj
- the GameObject whose property list we're being
added to