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
23 lines
407 B
#ifndef TILE_H
|
|
#define TILE_H TILE_H
|
|
|
|
#include <string>
|
|
|
|
#include "SDL.h"
|
|
#include "sdlmap.h"
|
|
|
|
class Tile{
|
|
SDL_Surface *surface;
|
|
public:
|
|
enum State { EMPTY, ROUGH, QUEUED, LOADED } state;
|
|
int zoom, x, y;
|
|
Tile(int x, int y, int zoom);
|
|
bool loaded();
|
|
void queue();
|
|
void load(char *memory, int size);
|
|
std::string url();
|
|
void render(SDL_Surface *screen, int offsetx, int offsety);
|
|
|
|
};
|
|
|
|
#endif
|