Skip to content
Newer
Older
100644 29 lines (25 sloc) 579 Bytes
441292c Platforms for real
Nol authored Oct 24, 2010
1 #ifndef _PLATFORM_H_
2 #define _PLATFORM_H_
3
2b55b74 Segfault keypress added
RandyTobias authored Oct 24, 2010
4 #include "globals.h"
49bc596 Abstract base class for objects
Nol authored Oct 24, 2010
5 #include "object.h"
c0f259d Texturing
Nol authored Oct 24, 2010
6 #include "texture.h"
441292c Platforms for real
Nol authored Oct 24, 2010
7
49bc596 Abstract base class for objects
Nol authored Oct 24, 2010
8 class Platform: public GameObject {
441292c Platforms for real
Nol authored Oct 24, 2010
9 private:
10 Platform();
11 float x;
12 float y;
89befd1 Movement kinda
Nol authored Oct 24, 2010
13 float width;
14 float height;
c0f259d Texturing
Nol authored Oct 24, 2010
15 Texture *texture;
441292c Platforms for real
Nol authored Oct 24, 2010
16 public:
d5e6624 Platforms fully implemented-ish
Nol authored Oct 24, 2010
17 Platform(float x, float y, int width, int height);
c0f259d Texturing
Nol authored Oct 24, 2010
18 Platform(float x, float y, int width, int height, Texture* texture);
49bc596 Abstract base class for objects
Nol authored Oct 24, 2010
19 virtual void move(float x, float y);
20 virtual void draw();
21 virtual void setPosition(float x, float y);
22 virtual float getX();
23 virtual float getY();
a70ea4f levels
Nol authored Oct 24, 2010
24 virtual float getHeight();
25 virtual float getWidth();
441292c Platforms for real
Nol authored Oct 24, 2010
26 };
27
28 #endif
Something went wrong with that request. Please try again.