/// The sprite used as the tileset.
const graphics::Sprite *Tileset() const { return tileset; }
/// Returns the Area at given pixel coordinates or 0 if off the map.
/// The sprite used as the tileset.
const graphics::Sprite *Tileset() const { return tileset; }
/// Returns the Area at given pixel coordinates or 0 if off the map.
- Area *AreaAt(const geometry::Vector<int> &);
- const Area *AreaAt(const geometry::Vector<int> &) const;
+ Area *AreaAt(const math::Vector<int> &);
+ const Area *AreaAt(const math::Vector<int> &) const;
- Tile *TileAt(const geometry::Vector<int> &);
- const Tile *TileAt(const geometry::Vector<int> &) const;
+ Tile *TileAt(const math::Vector<int> &);
+ const Tile *TileAt(const math::Vector<int> &) const;
/// Returns the Trigger at given pixel coordinates or 0 if off the map.
/// Multiple triggers are not supported. The first one found is returned.
/// Returns the Trigger at given pixel coordinates or 0 if off the map.
/// Multiple triggers are not supported. The first one found is returned.
Entity *EntitiesBegin() { return entities; }
Entity *EntitiesEnd() { return entities + numEntities; }
/// Render the map.
/// Entities are not rendered by this function.
Entity *EntitiesBegin() { return entities; }
Entity *EntitiesEnd() { return entities + numEntities; }
/// Render the map.
/// Entities are not rendered by this function.