Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: C++  |  size: 0.45 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef ENTITY_H
  2. #define ENTITY_H
  3.  
  4. #include <SDL/SDL.h>
  5.  
  6. class Entity {
  7. public:
  8.     SDL_Surface* Surf_Texture;
  9.     Entity(char* file);
  10.     int getX();
  11.     int getY();
  12.     int getW();
  13.     int getH();
  14.     int x;
  15.     int y;
  16.     int w;
  17.     int h;
  18.     void setX(int x);
  19.     void setY(int y);
  20.     void setW(int w);
  21.     void setH(int h);
  22.     void render(int x, int y);
  23.     bool intersects(const Entity& other);
  24.  
  25. };
  26.  
  27. #endif  /* ENTITY_H */