wyvern.kernel.motion
Class NoOpShapeChanger

java.lang.Object
  extended bywyvern.kernel.motion.AxisShapeChanger
      extended bywyvern.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

Constructor Summary
NoOpShapeChanger()
           
 
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 wyvern.kernel.motion.AxisShapeChanger
createEvent, execute, horizontal, knowsCommand, mapDirection, notifyRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpShapeChanger

public NoOpShapeChanger()
Method Detail

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