Leviathan  0.8.0.0
Leviathan game engine
Leviathan::SimpleAnimation Struct Reference

Contains an nimation for Animated component. More...

#include <Components.h>

Public Member Functions

DLLEXPORT SimpleAnimation (const std::string &name)
 
DLLEXPORT SimpleAnimation (SimpleAnimation &&other)
 
DLLEXPORT SimpleAnimation (const SimpleAnimation &other)
 

Public Attributes

const Ogre::IdString Name
 
const std::string ReadableName
 Readable version of Name as it is hashed. More...
 
bool Loop = false
 If true the animation will automatically loop. More...
 
float SpeedFactor = 1
 Controls how fast the animation plays. More...
 
bool Paused = false
 If true then the animation isn't updated. More...
 

Detailed Description

Contains an nimation for Animated component.

Definition at line 249 of file Components.h.

Constructor & Destructor Documentation

◆ SimpleAnimation() [1/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( const std::string &  name)
inline

Definition at line 251 of file Components.h.

251  : Name(name), ReadableName(name)
252  {}
const Ogre::IdString Name
Definition: Components.h:270
const std::string ReadableName
Readable version of Name as it is hashed.
Definition: Components.h:273

◆ SimpleAnimation() [2/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( SimpleAnimation &&  other)
inline

Definition at line 254 of file Components.h.

254  :
255  Name(std::move(other.Name)), ReadableName(std::move(other.ReadableName))
256  {
257  Loop = other.Loop;
258  SpeedFactor = other.SpeedFactor;
259  Paused = other.Paused;
260  }
bool Loop
If true the animation will automatically loop.
Definition: Components.h:276
bool Paused
If true then the animation isn&#39;t updated.
Definition: Components.h:280
const Ogre::IdString Name
Definition: Components.h:270
float SpeedFactor
Controls how fast the animation plays.
Definition: Components.h:278
const std::string ReadableName
Readable version of Name as it is hashed.
Definition: Components.h:273

◆ SimpleAnimation() [3/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( const SimpleAnimation other)
inline

Definition at line 262 of file Components.h.

262  :
263  Name(other.Name), ReadableName(other.ReadableName)
264  {
265  Loop = other.Loop;
266  SpeedFactor = other.SpeedFactor;
267  Paused = other.Paused;
268  }
bool Loop
If true the animation will automatically loop.
Definition: Components.h:276
bool Paused
If true then the animation isn&#39;t updated.
Definition: Components.h:280
const Ogre::IdString Name
Definition: Components.h:270
float SpeedFactor
Controls how fast the animation plays.
Definition: Components.h:278
const std::string ReadableName
Readable version of Name as it is hashed.
Definition: Components.h:273

Member Data Documentation

◆ Loop

bool Leviathan::SimpleAnimation::Loop = false

If true the animation will automatically loop.

Definition at line 276 of file Components.h.

◆ Name

const Ogre::IdString Leviathan::SimpleAnimation::Name

Definition at line 270 of file Components.h.

◆ Paused

bool Leviathan::SimpleAnimation::Paused = false

If true then the animation isn't updated.

Definition at line 280 of file Components.h.

◆ ReadableName

const std::string Leviathan::SimpleAnimation::ReadableName

Readable version of Name as it is hashed.

Definition at line 273 of file Components.h.

◆ SpeedFactor

float Leviathan::SimpleAnimation::SpeedFactor = 1

Controls how fast the animation plays.

Definition at line 278 of file Components.h.


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