Tinman  1.0
Public Types | Public Member Functions | Private Attributes | List of all members
Animation Class Reference

#include <animation.h>

Public Types

typedef std::shared_ptr< Animationshared
 
typedef std::function< void()> Callback
 

Public Member Functions

 Animation ()
 
 ~Animation ()
 
void activate (Ogre::Entity *entity, std::string animation_name, Animation::Callback callback)
 
void activate (Ogre::Entity *entity, std::string animation_name)
 
void update (float deltaT)
 

Private Attributes

std::map< Ogre::AnimationState *, Callbackactive_animations_
 

Member Typedef Documentation

typedef std::function<void()> Animation::Callback
typedef std::shared_ptr<Animation> Animation::shared

Constructor & Destructor Documentation

Animation::Animation ( )
Animation::~Animation ( )

Member Function Documentation

void Animation::activate ( Ogre::Entity *  entity,
std::string  animation_name,
Animation::Callback  callback 
)
void Animation::activate ( Ogre::Entity *  entity,
std::string  animation_name 
)
void Animation::update ( float  deltaT)

Member Data Documentation

std::map<Ogre::AnimationState*, Callback> Animation::active_animations_
private

The documentation for this class was generated from the following files: