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

Animation cycle of a tile image which changes the map accordingly. More...

#include <map.h>

Public Member Functions

 TileAnimation (Animation animation)
 
void update (int dt)
 
void addAffectedTile (MapLayer *layer, int index)
 

Private Attributes

std::vector< std::pair< MapLayer *, int > > mAffected
 
SimpleAnimation mAnimation
 
ImagemLastImage = nullptr
 

Detailed Description

Animation cycle of a tile image which changes the map accordingly.

Definition at line 60 of file map.h.

Constructor & Destructor Documentation

◆ TileAnimation()

TileAnimation::TileAnimation ( Animation  animation)

Definition at line 68 of file map.cpp.

Member Function Documentation

◆ addAffectedTile()

void TileAnimation::addAffectedTile ( MapLayer layer,
int  index 
)
inline

Definition at line 67 of file map.h.

◆ update()

void TileAnimation::update ( int  dt)

Definition at line 73 of file map.cpp.

Member Data Documentation

◆ mAffected

std::vector<std::pair<MapLayer*, int> > TileAnimation::mAffected
private

Definition at line 71 of file map.h.

◆ mAnimation

SimpleAnimation TileAnimation::mAnimation
private

Definition at line 72 of file map.h.

◆ mLastImage

Image* TileAnimation::mLastImage = nullptr
private

Definition at line 73 of file map.h.


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