4 * Created on: Sep 29, 2012
12 #include "../geometry/Vector.h"
13 #include "../graphics/fwd.h"
26 const graphics::Sprite *Tileset() const { return tileset; }
27 const Area *AreaAt(const geometry::Vector<int> &) const;
28 const Tile *TileAt(const geometry::Vector<int> &) const;
29 Trigger *TriggerAt(const geometry::Vector<int> &);
30 geometry::Vector<int> TileCoordinates(const geometry::Vector<int> &) const;
32 Entity **EntitiesBegin() { return &entities; }
33 Entity **EntitiesEnd() { return (&entities) + numEntities; }
35 void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
36 void RenderDebug(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
40 void SetTileset(const graphics::Sprite *t) { tileset = t; }
41 void SetAreas(Area *a, int num) { areas = a; numAreas = num; }
42 void SetTriggers(Trigger *t, int num) { triggers = t; numTriggers = num; }
43 void SetEntities(Entity *e, int num) { entities = e; numEntities = num; }
44 void SetWidth(int w) { width = w; }
47 const graphics::Sprite *tileset;
60 #endif /* MAP_MAP_H_ */