|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNGP.Timer
cs015.Swarm.BeeBehavior
This class represents a behavior that has a cs015.Swarm.Directional as the target that the behavior is acting on. It defines accessors and mutators for that target.
Directional
Constructor Summary | |
BeeBehavior()
This constructor builds a BeeBehavior with a null target. |
|
BeeBehavior(Directional target)
This constructor takes a new Directional to be target of the behavior and assigns it to its target instance variable. |
Method Summary | |
abstract BeeBehavior |
copy()
This method will return a copy of the current behavior. |
Directional |
getTarget()
Use this function to obtain the target of the BeeBehavior. |
void |
setTarget(Directional target)
Use this method to set the target that a BeeBehavior is acting on. |
Methods inherited from class NGP.Timer |
actionPerformed, activate, getDelay, setDelay, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeeBehavior()
public BeeBehavior(Directional target)
target
- The new target of the behavior.Method Detail |
public void setTarget(Directional target)
target
- The new target (A Directional)Directional
public Directional getTarget()
Directional
public abstract BeeBehavior copy()
SetTarget()
method! This method is
overridden in subclasses to return the correct behavior.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |