4 * Created on: Sep 29, 2012
13 #include "../geometry/Vector.h"
14 #include "../graphics/fwd.h"
27 const graphics::Sprite *Tileset() const { return tileset; }
28 Area *AreaAt(const geometry::Vector<int> &);
29 const Area *AreaAt(const geometry::Vector<int> &) const;
30 Tile *TileAt(const geometry::Vector<int> &);
31 const Tile *TileAt(const geometry::Vector<int> &) const;
32 Trigger *TriggerAt(const geometry::Vector<int> &);
33 SDL_Surface *BattleBackgroundAt(const geometry::Vector<int> &);
34 geometry::Vector<int> TileCoordinates(const geometry::Vector<int> &) const;
36 Entity *EntitiesBegin() { return entities; }
37 Entity *EntitiesEnd() { return entities + numEntities; }
39 void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
40 void RenderDebug(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
44 void SetTileset(const graphics::Sprite *t) { tileset = t; }
45 void SetBattleBackground(SDL_Surface *bg) { battlebg = bg; }
46 void SetAreas(Area *a, int num) { areas = a; numAreas = num; }
47 void SetTriggers(Trigger *t, int num) { triggers = t; numTriggers = num; }
48 void SetEntities(Entity *e, int num) { entities = e; numEntities = num; }
49 void SetWidth(int w) { width = w; }
52 const graphics::Sprite *tileset;
53 SDL_Surface *battlebg;
66 #endif /* MAP_MAP_H_ */