-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurrentstatenode.h
57 lines (49 loc) · 1.79 KB
/
currentstatenode.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
#ifndef __CURRENT_STATE_NODE_H__
#define __CURRENT_STATE_NODE_H__
#include "timer.h"
#include <string>
using namespace std;
class CurrentStateNode
{
private:
CurrentStateNode* nextNode;
CurrentStateNode* prevNode;
string sheetName;
string currentState;
string animationType;
unsigned int currentFrame;
double lastFrameUpdate;
double xScale;
double yScale;
public:
/////////////////////////////////////
//Constructors
/////////////////////////////////////
CurrentStateNode();
CurrentStateNode( CurrentStateNode* prev, string sheetName );
/////////////////////////////////////
//Accessors
/////////////////////////////////////
CurrentStateNode* getNext();
CurrentStateNode* getPrev();
string getSheetName();
string getState();
string getAnimationType();
unsigned int getFrame();
double getLastFrameUpdate();
double getXScale();
double getYScale();
/////////////////////////////////////
//Mutators
/////////////////////////////////////
void setNextNode( CurrentStateNode* next );
void setPrevNode( CurrentStateNode* prev );
void resetFrame();
void incrementFrame();
void setState( string stateName );
void setStateAndFrame( string stateName, unsigned int frameNumber );
void setFrameUpdate( double lastFrameUpdate );
void setAnimationType( string animationType );
void CurrentStateNode::setScale( double xScale, double yScale );
};
#endif