green::MoveBehavior Class Reference

#include <LibraryBehaviors.h>

List of all members.

Static Public Member Functions

static BehaviorTemplatePtr CreateTemplate ()
static bool RunBehavior (SystemPtr sys, BehaviorInstancePtr behavior, EntityInstancePtr originalTarget, EntityInstancePtr newTarget)


Detailed Description

This is the default movement behavior. It simply adds the latestTarget's velocity (scaled by deltaT) to the latestTarget's position.


Member Function Documentation

static BehaviorTemplatePtr green::MoveBehavior::CreateTemplate (  )  [inline, static]

Create the template for the default move behavior currently just creates an empty behavior template

static bool green::MoveBehavior::RunBehavior ( SystemPtr  sys,
BehaviorInstancePtr  behavior,
EntityInstancePtr  originalTarget,
EntityInstancePtr  newTarget 
) [inline, static]

This is the hard-coded default move behavior implementation this is to be called by Interpreter if the behavior is of the right type.

Parameters:
sys A pointer to the System for timing information
behavior The behaviorInstance inside the EntityInstance
originalTarget The entity's state at the beginning of the frame
newTarget The entity's state resulting from the last behavior run, or if this is the first, it is equivelant to originalTarget
return Returns true always


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 10:27:39 2007 for Green Engine by  doxygen 1.5.1