Mana
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Action Class Reference

An action consists of several animations, one for each direction. More...

#include <action.h>

Public Member Functions

 Action ()
 
 ~Action ()
 
void setAnimation (int direction, Animation *animation)
 
AnimationgetAnimation (int direction) const
 

Protected Attributes

std::map< int, Animation * > mAnimations
 

Detailed Description

An action consists of several animations, one for each direction.

Definition at line 31 of file action.h.

Constructor & Destructor Documentation

◆ Action()

Action::Action ( )
default

◆ ~Action()

Action::~Action ( )

Definition at line 30 of file action.cpp.

Member Function Documentation

◆ getAnimation()

Animation * Action::getAnimation ( int  direction) const

Definition at line 35 of file action.cpp.

◆ setAnimation()

void Action::setAnimation ( int  direction,
Animation animation 
)

Definition at line 47 of file action.cpp.

Member Data Documentation

◆ mAnimations

std::map<int, Animation *> Action::mAnimations
protected

Definition at line 43 of file action.h.


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