wyvern.lib.skills
Class Searcher

java.lang.Object
  extended bywyvern.lib.skills.Searcher
All Implemented Interfaces:
AddRemoveNotify, HookCallback, MutableProperty

public class Searcher
extends java.lang.Object
implements HookCallback, AddRemoveNotify, MutableProperty

Implements automatic searching ability.

Version:
1.0, Dec 15, 2002
Author:
Steve Yegge

Constructor Summary
Searcher()
           
 
Method Summary
 java.lang.Object createClone()
          Produces a clone of the property for the caller.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void hookEvent(java.lang.String hookName, CommandEvent event)
          Hooks each move and performs a search.
 void notifyAdd(PropertyList obj)
          Notifies the property that it's being added.
 void notifyRemove(PropertyList obj)
          Notifies the property that it's being removed.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Searcher

public Searcher()
Method Detail

notifyAdd

public void notifyAdd(PropertyList obj)
Notifies the property that it's being added.

Specified by:
notifyAdd in interface AddRemoveNotify
Parameters:
obj - the GameObject whose property list we're being added to

notifyRemove

public void notifyRemove(PropertyList obj)
Notifies the property that it's being removed.

Specified by:
notifyRemove in interface AddRemoveNotify
Parameters:
obj - the GameObject whose property list we're being removed from

hookEvent

public void hookEvent(java.lang.String hookName,
                      CommandEvent event)
Hooks each move and performs a search.

Specified by:
hookEvent in interface HookCallback
Parameters:
hookName - the name of the hook, such as "movePreHook".
event - the CommandEvent encapsulating the event parameters

createClone

public java.lang.Object createClone()
Description copied from interface: MutableProperty
Produces a clone of the property for the caller. Note: it's called createClone, not makeClone, because GameObject already has a makeClone. Some GameObjects can be properties (e.g inventories) and we can't do overloaded methods based only on the return type.

Specified by:
createClone in interface MutableProperty

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()