TDME2  1.9.200
AnimationState.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <tdme/tdme.h>
6 
8 
9 /**
10  * Animation state entity
11  * @author Andreas Drewke
12  */
15  setup(nullptr),
16  endAtTime(-1LL),
17  currentAtTime(-1LL),
18  lastAtTime(-1LL),
19  finished(true),
20  time(-1LL),
21  speed(1.0f)
22  {}
25  int64_t endAtTime,
26  int64_t currentAtTime,
27  int64_t lastAtTime,
28  bool finished,
29  float time,
30  float speed
31  ):
32  setup(setup),
37  time(time),
38  speed(speed)
39  {}
41  int64_t endAtTime;
42  int64_t currentAtTime;
43  int64_t lastAtTime;
44  bool finished;
45  float time;
46  float speed;
47 };
AnimationState(AnimationSetup *setup, int64_t endAtTime, int64_t currentAtTime, int64_t lastAtTime, bool finished, float time, float speed)