-
Notifications
You must be signed in to change notification settings - Fork 0
/
animationsheet.h
59 lines (49 loc) · 1.91 KB
/
animationsheet.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
#ifndef __ANIMATION_SHEET__
#define __ANIMATION_SHEET__
#include <vector>
#include <string>
#include "stateproperties.h"
using namespace std;
class AnimationSheet
{
private:
vector<StateProperties> stateProperties;
string sheetName;
string defaultState;
double totalSheetWidth;
double totalSheetHeight;
public:
/////////////////////////////////////
//Constructors
/////////////////////////////////////
AnimationSheet();
/////////////////////////////////////
//Mutators
/////////////////////////////////////
void insertSheetName( string sheetName );
void insertDefaultState( string defaultState );
void insertSheetWidth( double totalSheetWidth );
void insertSheetHeight( double totalSheetHeight );
void insertState( string stateName );
void insertXBegin( double xBeginForState );
void insertYBegin( double yBeginForState );
void insertFrameWidth( double stateFrameWidth );
void insertFrameHeight( double stateFrameHeight );
void insertNumFrames( unsigned int numFramesForState );
void insertFps( unsigned int fpsForState );
/////////////////////////////////////
//Accessors
/////////////////////////////////////
int getStateIndex( string stateName );
double getXBegin( int stateIndex );
double getYBegin( int stateIndex );
double getFrameWidth( int stateIndex );
double getFrameHeight( int stateIndex );
unsigned int getNumFrames( int stateIndex );
unsigned int getFps( int stateIndex );
double getSheetWidth( );
double getSheetHeight( );
string getSheetName();
string getDefaultState();
};
#endif