#include <animationcomponent.h>

Public Types | |
| typedef dtGame::GMComponent | BaseClass |
| typedef std::map < dtCore::UniqueId, dtCore::RefPtr < dtAnim::AnimationHelper > > | AnimCompMap |
| typedef AnimCompMap::allocator_type::value_type | AnimCompMapping |
| typedef AnimCompMap::iterator | AnimCompIter |
Public Member Functions | |
| AnimationComponent (const std::string &name=DEFAULT_NAME) | |
| void | ProcessMessage (const dtGame::Message &message) |
| handles a processed a message | |
| const dtAnim::AnimationHelper * | GetHelperForProxy (dtGame::GameActorProxy &proxy) const |
| Gets the helper registered for an actor. | |
| void | RegisterActor (dtGame::GameActorProxy &toRegister, dtAnim::AnimationHelper &helper) |
| Registers an actor with this component. | |
| void | UnregisterActor (dtGame::GameActorProxy &toRegister) |
| Registers an actor with this component. | |
| bool | IsRegisteredActor (dtGame::GameActorProxy &gameActorProxy) |
| |
| dtCore::Transformable * | GetTerrainActor () |
| |
| const dtCore::Transformable * | GetTerrainActor () const |
| |
| void | SetTerrainActor (dtCore::Transformable *newTerrain) |
| changes the actor to use for the terrain. | |
| dtCore::Transformable * | GetEyePointActor () |
| |
| const dtCore::Transformable * | GetEyePointActor () const |
| |
| void | SetEyePointActor (dtCore::Transformable *newEyePointActor) |
| changes the actor to use for the terrain. | |
Static Public Attributes | |
| static const std::string | DEFAULT_NAME |
| The default component name, used when looking it up on the GM. | |
Protected Member Functions | |
| virtual | ~AnimationComponent () |
| virtual void | TickLocal (float dt) |
| void | GroundClamp () |
| typedef std::map<dtCore::UniqueId, dtCore::RefPtr<dtAnim::AnimationHelper> > dtAnim::AnimationComponent::AnimCompMap |
| typedef AnimCompMap::allocator_type::value_type dtAnim::AnimationComponent::AnimCompMapping |
| typedef AnimCompMap::iterator dtAnim::AnimationComponent::AnimCompIter |
| dtAnim::AnimationComponent::AnimationComponent | ( | const std::string & | name = DEFAULT_NAME |
) |
| dtAnim::AnimationComponent::~AnimationComponent | ( | ) | [protected, virtual] |
| void dtAnim::AnimationComponent::ProcessMessage | ( | const dtGame::Message & | message | ) | [virtual] |
handles a processed a message
| The | message |
Reimplemented from dtGame::GMComponent.
| const dtAnim::AnimationHelper * dtAnim::AnimationComponent::GetHelperForProxy | ( | dtGame::GameActorProxy & | proxy | ) | const |
Gets the helper registered for an actor.
| proxy | The proxy to get the helper for |
| void dtAnim::AnimationComponent::RegisterActor | ( | dtGame::GameActorProxy & | toRegister, | |
| dtAnim::AnimationHelper & | helper | |||
| ) |
Registers an actor with this component.
To simplify coding in the actor, specifically when it comes to setting properties on the helper, the actor should create it's own helper and pass it in when registering.
| toRegister | the actor to register. | |
| helper | the preconfigured helper object to use. |
| dtUtil::Exception | if this actor is already registered with the component. |
| void dtAnim::AnimationComponent::UnregisterActor | ( | dtGame::GameActorProxy & | toRegister | ) |
Registers an actor with this component.
To simplify coding in the actor, specifically when it comes to setting properties on the helper, the actor should create it's own helper and pass it in when registering.
| toRegister | the actor to register. | |
| helper | the preconfigured helper object to use. |
| bool dtAnim::AnimationComponent::IsRegisteredActor | ( | dtGame::GameActorProxy & | gameActorProxy | ) |
| dtCore::Transformable * dtAnim::AnimationComponent::GetTerrainActor | ( | ) |
| const dtCore::Transformable * dtAnim::AnimationComponent::GetTerrainActor | ( | ) | const |
| void dtAnim::AnimationComponent::SetTerrainActor | ( | dtCore::Transformable * | newTerrain | ) |
changes the actor to use for the terrain.
| dtCore::Transformable * dtAnim::AnimationComponent::GetEyePointActor | ( | ) |
| const dtCore::Transformable * dtAnim::AnimationComponent::GetEyePointActor | ( | ) | const |
| void dtAnim::AnimationComponent::SetEyePointActor | ( | dtCore::Transformable * | newEyePointActor | ) |
changes the actor to use for the terrain.
| void dtAnim::AnimationComponent::TickLocal | ( | float | dt | ) | [protected, virtual] |
| void dtAnim::AnimationComponent::GroundClamp | ( | ) | [protected] |
const std::string dtAnim::AnimationComponent::DEFAULT_NAME [static] |
The default component name, used when looking it up on the GM.