X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMap.h;h=bda62bdd83c5485fa5e1aedddd00a98745d33272;hb=0fc36d261ef8129debbd4aa15594bc46cb82eb27;hp=57337605f3f0ed58b66bef01f75fccd27028c73f;hpb=4d4b40f06357392931cb309d0284875c40c2f2f0;p=l2e.git diff --git a/src/map/Map.h b/src/map/Map.h index 5733760..bda62bd 100644 --- a/src/map/Map.h +++ b/src/map/Map.h @@ -23,18 +23,27 @@ public: ~Map() { } public: + const graphics::Sprite *Tileset() const { return tileset; } + const Area &AreaAt(const geometry::Vector &) const; + const Tile &TileAt(const geometry::Vector &) const; + Trigger *TriggerAt(const geometry::Vector &); + geometry::Vector TileCoordinates(const geometry::Vector &) const; + 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 SetAreas(Area *a, int num) { areas = a; numAreas = num; } + void SetTriggers(Trigger *t, int num) { triggers = t; numTriggers = num; } void SetWidth(int w) { width = w; } private: const graphics::Sprite *tileset; - const Area *areas; + Area *areas; int numAreas; + Trigger *triggers; + int numTriggers; int width; };