BehaviorManager Class Reference
#include <BehaviorManager.h>
![](../class_behavior_manager.png)
# Public Member Functions | |
void | constructor () |
Class' constructor. | |
override uint32 | getType () |
override void | enable () |
Enable the manager. | |
override void | disable () |
Disable the manager. | |
override Behavior | create (Entity owner, const BehaviorSpec *behaviorSpec) |
void | reset () |
void | update () |
Update the registered bodies by advancing the physics simulations. |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
void | destroyAllComponents () |
Destroy all the manager's components. | |
virtual Component | create (Entity owner, const ComponentSpec *componentSpec)=0 |
virtual void | purgeComponents () |
Force the purging of deleted components. | |
virtual bool | areComponentsVisual () |
![]() | |
static Component | createComponent (Entity owner, const ComponentSpec *componentSpec) |
static void | destroyComponent (Entity owner, Component component) |
static Component | addComponent (Entity owner, const ComponentSpec *componentSpec) |
static void | removeComponent (Entity owner, Component component) |
static void | addComponents (Entity owner, ComponentSpec **componentSpecs, uint32 componentType) |
static void | removeComponents (Entity owner, uint32 componentType) |
static void | createComponents (Entity owner, ComponentSpec **componentSpecs) |
static void | destroyComponents (Entity owner) |
static Component | getComponentAtIndex (Entity owner, uint32 componentType, int16 componentIndex) |
static void | getComponents (Entity owner, uint32 componentType, VirtualList components) |
static bool | getComponentsOfClass (Entity owner, ClassPointer classPointer, VirtualList components, uint32 componentType) |
static uint16 | getComponentsCount (Entity owner, uint32 componentType) |
static void | propagateCommand (int32 command, Entity owner, uint32 componentType,...) |
static bool | calculateRightBox (Entity owner, RightBox *rightBox) |
![]() | |
VirtualList | components |
List of components. | |
bool | locked |
Flag to prevent the manipulation of the components list. |
# Detailed Description
Class BehaviorManager
Inherits from ComponentManager
Manages all the behavior instances.
Definition at line 30 of file BehaviorManager.h.
# Member Function Documentation
# constructor()
void BehaviorManager::constructor | ( | ) |
Class' constructor.
Definition at line 94 of file BehaviorManager.c.
# create()
Behavior BehaviorManager::create | ( | Entity | owner, |
const BehaviorSpec * | behaviorSpec ) |
Create a behavior with the provided spec.
- Parameters
-
owner Object to which the behavior will attach to behaviorSpec Spec to use to create the behavior
- Returns
- Created behavior
Definition at line 54 of file BehaviorManager.c.
# disable()
|
virtual |
Disable the manager.
Reimplemented from ComponentManager.
Definition at line 47 of file BehaviorManager.c.
# enable()
|
virtual |
Enable the manager.
Reimplemented from ComponentManager.
Definition at line 40 of file BehaviorManager.c.
# getType()
|
virtual |
Retrieve the compoment type that the manager manages.
- Returns
- Component type
Implements ComponentManager.
Definition at line 33 of file BehaviorManager.c.
# reset()
void BehaviorManager::reset | ( | ) |
Destroy the provided behavior Reset the manager's state
# update()
void BehaviorManager::update | ( | ) |
Update the registered bodies by advancing the physics simulations.
Definition at line 66 of file BehaviorManager.c.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Component/Behavior/BehaviorManager.h
- VUEngine-Core/source/Component/Behavior/BehaviorManager.c