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)
- 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
 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)

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


Leviathan::Animated::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Model  )

Member Data Documentation

◆ Animations

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

Playing animations

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.


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

Definition at line 291 of file Components.h.

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