Bomberman
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
RAY::ModelAnimations Class Reference

A Holder for Model Animations. More...

#include <ModelAnimations.hpp>

Collaboration diagram for RAY::ModelAnimations:

Public Member Functions

 ModelAnimations (const std::string &filePath)
 A Model animation constructor. More...
 
 ModelAnimations (const ModelAnimations &)=default
 default copy ctor More...
 
 ~ModelAnimations ()=default
 Default constructor. More...
 
ModelAnimationsoperator= (const ModelAnimations &)=default
 Default assignment operator. More...
 
ModelAnimationoperator[] (int index)
 Castin Object to raw model animation pointer. More...
 
const ModelAnimationoperator[] (int index) const
 std [] const More...
 
const ModelAnimationat (int index) const
 std at const More...
 
ModelAnimationat (int index)
 std at More...
 
size_t getAnimationsCount () const
 
std::string getFilePath () const
 Get the creation file. More...
 

Private Attributes

std::shared_ptr<::ModelAnimation_animationsPtr
 Holds the pointer returned by the loading function. More...
 
std::vector< ModelAnimation_animations
 A holder for animations. More...
 
int _animationCount
 the number of loaded animations More...
 
std::string _filePath
 The file where the animations were loaded (used to create a copy of this class) More...
 

Static Private Attributes

static Cache<::ModelAnimation_animationsCache
 

Detailed Description

A Holder for Model Animations.

Constructor & Destructor Documentation

◆ ModelAnimations() [1/2]

RAY::ModelAnimations::ModelAnimations ( const std::string &  filePath)
explicit

A Model animation constructor.

Parameters
filePathPath to the file containing animations

◆ ModelAnimations() [2/2]

RAY::ModelAnimations::ModelAnimations ( const ModelAnimations )
default

default copy ctor

◆ ~ModelAnimations()

RAY::ModelAnimations::~ModelAnimations ( )
default

Default constructor.

Member Function Documentation

◆ at() [1/2]

RAY::ModelAnimation & RAY::ModelAnimations::at ( int  index)

std at

◆ at() [2/2]

const RAY::ModelAnimation & RAY::ModelAnimations::at ( int  index) const

std at const

◆ getAnimationsCount()

size_t RAY::ModelAnimations::getAnimationsCount ( ) const
Returns
the number of loaded animations

◆ getFilePath()

std::string RAY::ModelAnimations::getFilePath ( ) const

Get the creation file.

◆ operator=()

ModelAnimations& RAY::ModelAnimations::operator= ( const ModelAnimations )
default

Default assignment operator.

◆ operator[]() [1/2]

RAY::ModelAnimation & RAY::ModelAnimations::operator[] ( int  index)

Castin Object to raw model animation pointer.

◆ operator[]() [2/2]

const RAY::ModelAnimation & RAY::ModelAnimations::operator[] ( int  index) const

std [] const

Member Data Documentation

◆ _animationCount

int RAY::ModelAnimations::_animationCount
private

the number of loaded animations

◆ _animations

std::vector<ModelAnimation> RAY::ModelAnimations::_animations
private

A holder for animations.

◆ _animationsCache

RAY::Cache<::ModelAnimation > RAY::ModelAnimations::_animationsCache
staticprivate

◆ _animationsPtr

std::shared_ptr<::ModelAnimation> RAY::ModelAnimations::_animationsPtr
private

Holds the pointer returned by the loading function.

◆ _filePath

std::string RAY::ModelAnimations::_filePath
private

The file where the animations were loaded (used to create a copy of this class)


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