X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMap.h;h=5eacc7b9b08e15ba2c3d4968debc6793a97811b0;hb=0ad5ca97b5df217329bc319d62564a9f46ba11d7;hp=ab0728b765ba8ec363c20d27f3a7e0b9e8e70454;hpb=3f9f41338d8100a719e161a3a1cdda9dd227e2b4;p=l2e.git diff --git a/src/map/Map.h b/src/map/Map.h index ab0728b..5eacc7b 100644 --- a/src/map/Map.h +++ b/src/map/Map.h @@ -24,9 +24,12 @@ public: public: const graphics::Sprite *Tileset() const { return tileset; } + Area *AreaAt(const geometry::Vector &); const Area *AreaAt(const geometry::Vector &) const; + Tile *TileAt(const geometry::Vector &); const Tile *TileAt(const geometry::Vector &) const; Trigger *TriggerAt(const geometry::Vector &); + SDL_Surface *BattleBackgroundAt(const geometry::Vector &); geometry::Vector TileCoordinates(const geometry::Vector &) const; Entity **EntitiesBegin() { return &entities; } @@ -38,6 +41,7 @@ public: // temporary setters public: void SetTileset(const graphics::Sprite *t) { tileset = t; } + void SetBattleBackground(SDL_Surface *bg) { battlebg = bg; } void SetAreas(Area *a, int num) { areas = a; numAreas = num; } void SetTriggers(Trigger *t, int num) { triggers = t; numTriggers = num; } void SetEntities(Entity *e, int num) { entities = e; numEntities = num; } @@ -45,6 +49,7 @@ public: private: const graphics::Sprite *tileset; + SDL_Surface *battlebg; Area *areas; int numAreas; Trigger *triggers;