You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
407 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef TILE_H
  2. #define TILE_H TILE_H
  3. #include <string>
  4. #include "SDL.h"
  5. #include "sdlmap.h"
  6. class Tile{
  7. SDL_Surface *surface;
  8. public:
  9. enum State { EMPTY, ROUGH, QUEUED, LOADED } state;
  10. int zoom, x, y;
  11. Tile(int x, int y, int zoom);
  12. bool loaded();
  13. void queue();
  14. void load(char *memory, int size);
  15. std::string url();
  16. void render(SDL_Surface *screen, int offsetx, int offsety);
  17. };
  18. #endif