X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FTilemap.hh;h=80bede9a10967d0ca38e79cdfb2739e537f57a67;hb=329a48e4c4c2f5f2904b913938fc53154c48b825;hp=d8708f1f15f20acf9ff2caa382de4b06403134b1;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4;p=chaz%2Fyoink diff --git a/src/Moof/Tilemap.hh b/src/Moof/Tilemap.hh index d8708f1..80bede9 100644 --- a/src/Moof/Tilemap.hh +++ b/src/Moof/Tilemap.hh @@ -58,6 +58,7 @@ public: */ typedef unsigned Index; + static const Index NO_TILE = -1; typedef enum { @@ -82,7 +83,7 @@ public: * @return True if index is valid, false otherwise. */ - bool getTileCoords(Index index, Scalar coords[8]); + bool getTileCoords(Index index, Scalar coords[8]) const; /** @@ -93,7 +94,7 @@ public: * @return True if index is valid, false otherwise. */ - bool getTileCoords(Index index, Scalar coords[8], Orientation what); + bool getTileCoords(Index index, Scalar coords[8], Orientation what) const; static std::string getPathToResource(const std::string& name);