Game Develop C++ Platform: Animation.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Animation.h
Go to the documentation of this file.
1
6 #ifndef ANIMATION_H
7 #define ANIMATION_H
8
9 #include <string>
10 #include <vector>
11 class Direction;
12
20 class GD_API Animation
21 {
22 public:
23 Animation();
24 virtual ~Animation();
25
29 const Direction & GetDirection(unsigned int n) const;
30
34 Direction & GetDirectionToModify(unsigned int n);
35
39 void SetDirection(const Direction & direction, unsigned int nb);
40
44 void SetDirectionsNumber(unsigned int nb);
45
49 unsigned int GetDirectionsNumber() const { return directionsNumber; };
50
54 inline bool HasNoDirections() const { return directions.empty(); };
55
56 bool useMultipleDirections;
57
58 private:
59
60 unsigned int directionsNumber;
61 std::vector < Direction > directions;
62
63 static Direction badDirection;
64 };
65
66 #endif // ANIMATION_H
67