
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
C++ | size: 0.45 KB | hits: 15 | expires: Never
#ifndef ENTITY_H
#define ENTITY_H
#include <SDL/SDL.h>
class Entity {
public:
SDL_Surface* Surf_Texture;
Entity(char* file);
int getX();
int getY();
int getW();
int getH();
int x;
int y;
int w;
int h;
void setX(int x);
void setY(int y);
void setW(int w);
void setH(int h);
void render(int x, int y);
bool intersects(const Entity& other);
};
#endif /* ENTITY_H */