-
Notifications
You must be signed in to change notification settings - Fork 1
/
frame.h
63 lines (59 loc) · 994 Bytes
/
frame.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef FRAME_H
#define FRAME_H
#include <SFML/Graphics.hpp>
using sf::IntRect;
/**
* @brief The Frame class
*/
class Frame {
int start = 0;
int end = 0;
int current = 0;
IntRect rect = {};
public:
/**
* @brief Frame
* @param start
* @param end
* @param current
* @param rect
*/
Frame(int start,
int end,
int current,
const IntRect& rect);
/**
* @brief getStart
* @return
*/
int getStart() const;
/**
* @brief getEnd
* @return
*/
int getEnd() const;
/**
* @brief getCurrent
* @return
*/
int getCurrent() const;
/**
* @brief getRect
* @return
*/
IntRect getRect();
/**
* @brief setCurrentFrame
* @param current
*/
void setCurrentFrame(int current);
/**
* @brief update
*/
void update();
/**
* @brief updateRect
*/
void updateRect();
};
#endif // FRAME_H