X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FArea.cpp;h=2c7f1b8b7987d50fc477b7b8f5c3af501899344b;hb=06db9f596cd1c5aa4c0832b387882f7c74c1b4c0;hp=b6d02f6204f7ba0477b4c7c9df636fc2a3bad936;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/map/Area.cpp b/src/map/Area.cpp index b6d02f6..2c7f1b8 100644 --- a/src/map/Area.cpp +++ b/src/map/Area.cpp @@ -1,10 +1,3 @@ -/* - * Area.cpp - * - * Created on: Sep 26, 2012 - * Author: holy - */ - #include "Area.h" #include "Tile.h" @@ -15,7 +8,7 @@ #include -using geometry::Vector; +using math::Vector; using loader::FieldDescription; using loader::Interpreter; using loader::TypeDescription; @@ -31,7 +24,7 @@ Area::Area() } -Tile *Area::TileAt(const geometry::Vector &offset) { +Tile *Area::TileAt(const math::Vector &offset) { int tileIndex(offset.Y() * width + offset.X()); if (tileIndex < numTiles) { return tiles +tileIndex; @@ -40,7 +33,7 @@ Tile *Area::TileAt(const geometry::Vector &offset) { } } -const Tile *Area::TileAt(const geometry::Vector &offset) const { +const Tile *Area::TileAt(const math::Vector &offset) const { int tileIndex(offset.Y() * width + offset.X()); if (tileIndex < numTiles) { return tiles +tileIndex;