X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMap.h;fp=src%2Fmap%2FMap.h;h=9fb24afc9dd305e67d9e27d108e70621806dea11;hb=59c4aea0762cbc5f1bf74c5b1b35629408fb92af;hp=0000000000000000000000000000000000000000;hpb=2a1d9169e1f6c2dfe0f93ed40d5fb68d3da342af;p=l2e.git diff --git a/src/map/Map.h b/src/map/Map.h new file mode 100644 index 0000000..9fb24af --- /dev/null +++ b/src/map/Map.h @@ -0,0 +1,48 @@ +/* + * Map.h + * + * Created on: Sep 29, 2012 + * Author: holy + */ + +#ifndef MAP_MAP_H_ +#define MAP_MAP_H_ + +#include "../geometry/Vector.h" + +#include + +namespace graphics { + class Sprite; +} + +namespace map { + +class Area; + +class Map { + +public: + Map(); + ~Map() { } + +public: + void Render(SDL_Surface *dest, const geometry::Vector &offset) const; + +// temporary setters +public: + void SetTileset(const graphics::Sprite *t) { tileset = t; } + void SetAreas(const Area *a, int num) { areas = a; numAreas = num; } + void SetWidth(int w) { width = w; } + +private: + const graphics::Sprite *tileset; + const Area *areas; + int numAreas; + int width; + +}; + +} + +#endif /* MAP_MAP_H_ */