#include <LibraryBehaviors.h>
Static Public Member Functions | |
static BehaviorTemplatePtr | CreateTemplate () |
static bool | RunBehavior (SystemPtr sys, BehaviorInstancePtr behavior, EntityInstancePtr originalTarget, EntityInstancePtr newTarget) |
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.
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 |