GP
Interface Behavioral

All Known Subinterfaces:
Graphic

public interface Behavioral


Method Summary
 void AddBehavior(Behavior behavior)
          This method can be used to add a new behavioral object to this object.
 void ApplyBehaviors(double time)
           
 void ApplyInstincts(double time)
           
 void RemoveAllBehaviors()
          This method removes all existing behavioral objects from this object.
 void RemoveBehavior(Behavior behavior)
          This method can be used to remove an existing behavioral object from this object.
 void ReplaceAllBehaviors(Behavior behavior)
           
 

Method Detail

ApplyBehaviors

public void ApplyBehaviors(double time)
Parameters:
time - the current time in seconds

ApplyInstincts

public void ApplyInstincts(double time)
Parameters:
time - the current time in seconds

AddBehavior

public void AddBehavior(Behavior behavior)
This method can be used to add a new behavioral object to this object. There should be no limit to how many behavioral object that you can add. Behavioral object added with this method will work in parallel. Their order of being applied is not guarenteed, only that all behaviors will be appiled at the same time interval.
Parameters:
behavior - the new behavior to be added

RemoveBehavior

public void RemoveBehavior(Behavior behavior)
This method can be used to remove an existing behavioral object from this object. No error is returned if the behavior is not found to be removed.
Parameters:
behavior - the existing behavior to be removed

RemoveAllBehaviors

public void RemoveAllBehaviors()
This method removes all existing behavioral objects from this object. No error is returned if there are no existing behaviors on this object.

ReplaceAllBehaviors

public void ReplaceAllBehaviors(Behavior behavior)
Parameters:
behavior - the new behvaior that will replace all existing behaviors on this object