-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnimation.h
43 lines (41 loc) · 1.17 KB
/
Animation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//Animation.h
#ifndef NEOOBJECTS_ANIMATION_H
#define NEOOBJECTS_ANIMATION_H
#include "Texture.h"
#include <vector>
namespace sdlObjects {
class Animation {
//Members
public:
Animation *Next, *Previous;
protected:
float Peak;
int Duration, Modifier, State;
std::string Animationset;
std::vector<float> Weights;
std::vector<int> Tiles;
//Access Methods
public:
Animation();
~Animation();
std::string GetAnimationset();
int GetDuration();
std::string GetID();
int GetModifier();
float GetPeak();
int GetState();
int GetTile(unsigned int Index);
int GetTiles();
float GetWeight(unsigned int Index);
//Process Methods
public:
void AddTile(int Tile, float Weight);
void SetAnimationset(std::string Animationset);
void SetDuration(int Duration);
void SetModifier(int Modifier);
void SetPeak(float Peak);
void SetState(int State);
void Who();
};
}
#endif