- Area *AreaAt(const geometry::Vector<int> &);
- const Area *AreaAt(const geometry::Vector<int> &) const;
- Tile *TileAt(const geometry::Vector<int> &);
- const Tile *TileAt(const geometry::Vector<int> &) const;
- Trigger *TriggerAt(const geometry::Vector<int> &);
- SDL_Surface *BattleBackgroundAt(const geometry::Vector<int> &);
- geometry::Vector<int> TileCoordinates(const geometry::Vector<int> &) const;
+ /// Returns the Area at given pixel coordinates or 0 if off the map.
+ Area *AreaAt(const math::Vector<int> &);
+ const Area *AreaAt(const math::Vector<int> &) const;
+ /// Returns the Tile at given pixel coordinates or 0 if off the map.
+ 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.
+ Trigger *TriggerAt(const math::Vector<int> &);
+ /// The battle background image for this map if neither the tile nor the
+ /// area has one specified.
+ SDL_Surface *BattleBackgroundAt(const math::Vector<int> &);
+ /// Convert coordinates from pixel to tile.
+ math::Vector<int> TileCoordinates(const math::Vector<int> &) const;
+ /// Convert coordinates from tile to pixel.
+ math::Vector<int> PixelCoordinates(const math::Vector<int> &) const;