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 241 of file Components.h.

Constructor & Destructor Documentation

◆ SimpleAnimation() [1/3]

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

Definition at line 243 of file Components.h.

243  : Name(name), ReadableName(name)
244  {
245  }
const Ogre::IdString Name
Definition: Components.h:263
const std::string ReadableName
Readable version of Name as it is hashed.
Definition: Components.h:266

◆ SimpleAnimation() [2/3]

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

Definition at line 247 of file Components.h.

247  :
248  Name(std::move(other.Name)), ReadableName(std::move(other.ReadableName))
249  {
250  Loop = other.Loop;
251  SpeedFactor = other.SpeedFactor;
252  Paused = other.Paused;
253  }
bool Loop
If true the animation will automatically loop.
Definition: Components.h:269
bool Paused
If true then the animation isn&#39;t updated.
Definition: Components.h:273
const Ogre::IdString Name
Definition: Components.h:263
float SpeedFactor
Controls how fast the animation plays.
Definition: Components.h:271
const std::string ReadableName
Readable version of Name as it is hashed.
Definition: Components.h:266

◆ SimpleAnimation() [3/3]

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

Definition at line 255 of file Components.h.

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

Member Data Documentation

◆ Loop

bool Leviathan::SimpleAnimation::Loop = false

If true the animation will automatically loop.

Definition at line 269 of file Components.h.

◆ Name

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

Definition at line 263 of file Components.h.

◆ Paused

bool Leviathan::SimpleAnimation::Paused = false

If true then the animation isn't updated.

Definition at line 273 of file Components.h.

◆ ReadableName

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

Readable version of Name as it is hashed.

Definition at line 266 of file Components.h.

◆ SpeedFactor

float Leviathan::SimpleAnimation::SpeedFactor = 1

Controls how fast the animation plays.

Definition at line 271 of file Components.h.


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