Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1bdf551e86
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 29 lines (25 sloc) 0.579 kb
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
#ifndef _PLATFORM_H_
#define _PLATFORM_H_

#include "globals.h"
#include "object.h"
#include "texture.h"

class Platform: public GameObject {
private:
Platform();
float x;
float y;
float width;
float height;
Texture *texture;
public:
Platform(float x, float y, int width, int height);
Platform(float x, float y, int width, int height, Texture* texture);
virtual void move(float x, float y);
virtual void draw();
virtual void setPosition(float x, float y);
virtual float getX();
virtual float getY();
virtual float getHeight();
virtual float getWidth();
};

#endif
Something went wrong with that request. Please try again.