-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoaderParams.h
57 lines (44 loc) · 1.23 KB
/
LoaderParams.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
//
// LoaderParams.h
// SDL Game Programming Book
//
// Created by shaun mitchell on 19/01/2013.
// Copyright (c) 2013 shaun mitchell. All rights reserved.
//
#ifndef SDL_Game_Programming_Book_LoaderParams_h
#define SDL_Game_Programming_Book_LoaderParams_h
#include <string>
class LoaderParams
{
public:
LoaderParams(int x, int y, int width, int height, std::string textureID, int numFrames,
int callbackID = 0, int animSpeed = 0) :
m_x(x),
m_y(y),
m_width(width),
m_height(height),
m_textureID(textureID),
m_numFrames(numFrames),
m_callbackID(callbackID),
m_animSpeed(animSpeed)
{
}
int getX() const { return m_x; }
int getY() const { return m_y; }
int getWidth() const { return m_width; }
int getHeight() const { return m_height; }
std::string getTextureID() const { return m_textureID; }
int getNumFrames() const { return m_numFrames; }
int getCallbackID() const { return m_callbackID; }
int getAnimSpeed() const { return m_animSpeed; }
private:
int m_x;
int m_y;
int m_width;
int m_height;
int m_callbackID;
int m_animSpeed;
std::string m_textureID;
int m_numFrames;
};
#endif