123456789101112131415161718192021222324252627282930 |
- #ifndef DIPOINT_H
- #define DIPOINT_H
- #include <SDL2/SDL.h>
- class DiPoint
- {
- public:
- static SDL_Surface* image[37];
- //Image
- int frame;
- SDL_Rect location;
- //Setters
- void setFrame(int imageId);
- void setLeft(int amount);
- void setTop(int amount);
- void setRight(int amount);
- void setBottom(int amount);
- void setCenterX(int amount);
- void setCenterY(int amount);
- void draw(SDL_Surface *screen);
- };
- #endif
|