-
Notifications
You must be signed in to change notification settings - Fork 9
/
LoaderParams.h
43 lines (33 loc) · 906 Bytes
/
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
#pragma once
#ifndef __LoaderParams__
#define __LoaderParams__
#include <iostream>
class LoaderParams
{
int m_x;
int m_y;
int m_width;
int m_height;
int m_numFrames;
int m_callbackID;
int m_animSpeed;
std::string m_textureID;
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_numFrames(numFrames),
m_textureID(textureID),
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; }
int getNumFrames() const { return m_numFrames; }
int getCallbackID() const { return m_callbackID; }
std::string getTextureID() const { return m_textureID; }
};
#endif //defined(__LoaderParams__)