TurtleBrains  0.2.1
High quality, portable, C++ API for native application and game development.
TurtleBrains::Game::EntityBehaviorInterface Class Referenceabstract

#include <tb_entity_behavior_interface.h>

Inheritance diagram for TurtleBrains::Game::EntityBehaviorInterface:
TurtleBrains::Core::Noncopyable TurtleBrains::Game::DelayBehavior TurtleBrains::Game::KillBehavior TurtleBrains::Game::MoveBehavior TurtleBrains::Game::MoveToBehavior

Public Member Functions

 EntityBehaviorInterface (EntityInterface &entity)
 
virtual ~EntityBehaviorInterface (void)=0
 

Protected Member Functions

virtual void OnAdded (void)
 
virtual void OnRemoved (void)
 
virtual void OnPaused (void)
 
virtual void OnResume (void)
 
virtual void OnSimulate (void)
 
virtual void OnUpdate (const float deltaTime)
 
virtual void OnRender (void) const
 
virtual void OnCollideWith (const EntityInterface &other)
 

Protected Attributes

EntitymEntity
 

Friends

class Entity
 

Detailed Description

TODO: TIM: Documentation: Teach the user how to use this.

Constructor & Destructor Documentation

TurtleBrains::Game::EntityBehaviorInterface::EntityBehaviorInterface ( EntityInterface entity)
explicit

TODO: TIM: Documentation: Teach the user how to use this.

virtual TurtleBrains::Game::EntityBehaviorInterface::~EntityBehaviorInterface ( void  )
pure virtual

Destructs an entity which currently (TurtleBrains v0.2.0) does not have any resources to clean up after.

Member Function Documentation

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnAdded ( void  )
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnCollideWith ( const EntityInterface other)
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnPaused ( void  )
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnRemoved ( void  )
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnRender ( void  ) const
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnResume ( void  )
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnSimulate ( void  )
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

Reimplemented in TurtleBrains::Game::MoveToBehavior, TurtleBrains::Game::MoveBehavior, TurtleBrains::Game::KillBehavior, and TurtleBrains::Game::DelayBehavior.

virtual void TurtleBrains::Game::EntityBehaviorInterface::OnUpdate ( const float  deltaTime)
protectedvirtual

TODO: TIM: Documentation: Teach the user how to use this.

Member Data Documentation

Entity& TurtleBrains::Game::EntityBehaviorInterface::mEntity
protected

TODO: TIM: Documentation: Teach the user how to use this.