|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNGP.Timer
cs015.Swarm.BeeBehavior
cs015.Swarm.MoveBehavior
cs015.Swarm.MoveRandomlyBehavior
This is a concrete subclass of a MoveBehavior that moves a Directional randomly about the screen.
MoveBehavior
,
BeeBehavior
Constructor Summary | |
MoveRandomlyBehavior()
This constructor builds this behavior with no target to act on, that it the target reference in its BeeBehavior superclass is null. |
|
MoveRandomlyBehavior(Directional target)
This constructor builds this behavior with a target on which it will act. |
Method Summary | |
void |
activate()
You should not call this method yourself This method is called at regular intervals to perform this behavior's actions. |
BeeBehavior |
copy()
This method returns a copy of the behavior. |
Methods inherited from class cs015.Swarm.BeeBehavior |
getTarget, setTarget |
Methods inherited from class NGP.Timer |
actionPerformed, 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 MoveRandomlyBehavior()
public MoveRandomlyBehavior(Directional target)
target
- A Directional to be the target of this behavior.Method Detail |
public void activate()
activate
method.
activate
in class MoveBehavior
public BeeBehavior copy()
setTarget(...)
method
copy
in class BeeBehavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |