#include <tb_entity_behavior_interface.h>
Public Member Functions | |
KillBehavior (Entity &entity) | |
virtual | ~KillBehavior (void) |
virtual void | OnSimulate (void) |
![]() | |
EntityBehaviorInterface (Entity &entity) | |
virtual | ~EntityBehaviorInterface (void)=0 |
Additional Inherited Members | |
![]() | |
virtual void | OnAdded (void) |
virtual void | OnRemoved (void) |
virtual void | OnPaused (void) |
virtual void | OnResume (void) |
virtual void | OnUpdate (const float deltaTime) |
virtual void | OnRender (void) const |
virtual void | OnCollideWith (const Entity &other) |
![]() | |
Entity & | mEntity |
The KillBehavior is a simple behavior that will remove the entity from entity manager that it exists within. Note this does not delete the entity, although the entity manager may depending on how the entity was added.
|
inline |
Constructs a KillBehavior for a specific entity.
entity | The entity that will be removed from the EntityManager it belongs to on the first call to Simulate. |
|
inlinevirtual |
Destructs the KillBehavior.
|
virtual |
Removes the entity from the EntityManager it belongs to.
Reimplemented from TurtleBrains::Game::EntityBehaviorInterface.