Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Animated Class Reference

Entity plays animations on an Ogre::Item. More...

#include <Components.h>

+ Inheritance diagram for Leviathan::Animated:

Public Member Functions

DLLEXPORT Animated (Ogre::Item *item)
 
 REFERENCE_HANDLE_UNCOUNTED_TYPE (Model)
 
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 
 Component (const Component &)=delete
 
Componentoperator= (const Component &)=delete
 

Public Attributes

Ogre::Item * GraphicalObject = nullptr
 The entity that is played animations on. More...
 
std::vector< SimpleAnimationAnimations
 
- Public Attributes inherited from Leviathan::Component
bool Marked
 
const COMPONENT_TYPE Type
 Type of this component, used for network serialization. More...
 

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::Animated
 

Detailed Description

Entity plays animations on an Ogre::Item.

Definition at line 277 of file Components.h.

Constructor & Destructor Documentation

◆ Animated()

DLLEXPORT Leviathan::Animated::Animated ( Ogre::Item *  item)
inline

Definition at line 279 of file Components.h.

279 : Component(TYPE), GraphicalObject(item) {}
Component(COMPONENT_TYPE type)
Definition: Component.h:55
static constexpr auto TYPE
Definition: Components.h:291
Ogre::Item * GraphicalObject
The entity that is played animations on.
Definition: Components.h:284

Member Function Documentation

◆ REFERENCE_HANDLE_UNCOUNTED_TYPE()

Leviathan::Animated::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Model  )

Member Data Documentation

◆ Animations

std::vector<SimpleAnimation> Leviathan::Animated::Animations

Playing animations

Note
When adding or removing (or changing the looping etc. properties) this needs to be marked

Definition at line 289 of file Components.h.

◆ GraphicalObject

Ogre::Item* Leviathan::Animated::GraphicalObject = nullptr

The entity that is played animations on.

Definition at line 284 of file Components.h.

◆ TYPE

constexpr auto Leviathan::Animated::TYPE = COMPONENT_TYPE::Animated
static

Definition at line 291 of file Components.h.


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