GP
Class Behavior
java.lang.Object
|
+--GP.Behavior
- public abstract class Behavior
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Behavior
public Behavior()
ResetBehavior
public void ResetBehavior()
AppendBehavior
public void AppendBehavior(Behavior behavior)
- Parameters:
behavior
- behavior to be appended
ReplaceAllBehaviors
public void ReplaceAllBehaviors(Behavior behavior)
DecideWhichBehaviorToApply
public void DecideWhichBehaviorToApply(double time)
SetCurrentTime
public void SetCurrentTime(double time)
GetCurrentTime
public double GetCurrentTime()
Act
public abstract void Act()
- This need to be redefined in a subclass. This method gets called
as often as possible (about every 1/2 of a second on a good day).
- Parameters:
time
- the time that the method is called, should be used to paramatrize the behavior
IsDone
public abstract boolean IsDone()
Start
public abstract void Start()
Stop
public abstract void Stop()
StartLooping
public void StartLooping()
StopLooping
public void StopLooping()