]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Map.h
added basic map classes
[l2e.git] / src / map / Map.h
diff --git a/src/map/Map.h b/src/map/Map.h
new file mode 100644 (file)
index 0000000..9fb24af
--- /dev/null
@@ -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 <SDL.h>
+
+namespace graphics {
+       class Sprite;
+}
+
+namespace map {
+
+class Area;
+
+class Map {
+
+public:
+       Map();
+       ~Map() { }
+
+public:
+       void Render(SDL_Surface *dest, const geometry::Vector<int> &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_ */