X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMap.h;h=6b2eea4030e9f642d2bf855e0c449970124371e3;hb=abfa371d1d2c14052d4cbfc885b8383c6da7d499;hp=e0a95dd9bca2d062447249a1b9a88b02ae3dfd5f;hpb=b20681c1bf555c337b15796b3910d0d48488b102;p=l2e.git diff --git a/src/map/Map.h b/src/map/Map.h index e0a95dd..6b2eea4 100644 --- a/src/map/Map.h +++ b/src/map/Map.h @@ -21,8 +21,8 @@ namespace map { /// Maps are made up of uniform areas of tiles. /// The looks of a tile is defined by the Tileset() sprite with Tile::Offset() /// as the column and row in the sprite. -/// Maps can be propulated with triggers and entities. Those are or use with -/// MapState and are not handled by the map itself. +/// Maps can be propulated with triggers and entities. Those are for use with +/// a MapState and are not handled by the map itself. /// Positions are expressed either as pixel or tile coordinates depending on /// function purpose with (0|0) being the top left corner and positive values /// extending to the right and down respectively. @@ -50,8 +50,10 @@ public: /// The battle background image for this map if neither the tile nor the /// area has one specified. SDL_Surface *BattleBackgroundAt(const math::Vector &); - /// Convert coordinates pixel to tile. + /// Convert coordinates from pixel to tile. math::Vector TileCoordinates(const math::Vector &) const; + /// Convert coordinates from tile to pixel. + math::Vector PixelCoordinates(const math::Vector &) const; Entity *EntitiesBegin() { return entities; } Entity *EntitiesEnd() { return entities + numEntities; }