DiPoint.h 430 B

123456789101112131415161718192021222324252627282930
  1. #ifndef DIPOINT_H
  2. #define DIPOINT_H
  3. #include <SDL2/SDL.h>
  4. class DiPoint
  5. {
  6. public:
  7. static SDL_Surface* image[37];
  8. //Image
  9. int frame;
  10. SDL_Rect location;
  11. //Setters
  12. void setFrame(int imageId);
  13. void setLeft(int amount);
  14. void setTop(int amount);
  15. void setRight(int amount);
  16. void setBottom(int amount);
  17. void setCenterX(int amount);
  18. void setCenterY(int amount);
  19. void draw(SDL_Surface *screen);
  20. };
  21. #endif