X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTilemap.hh;h=942a5e9c899d42ef6152a9fc7df8402ded3050d2;hp=d8708f1f15f20acf9ff2caa382de4b06403134b1;hb=f72400af4fa3e7b54dab154b5a2b6503a6f9af18;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4 diff --git a/src/Moof/Tilemap.hh b/src/Moof/Tilemap.hh index d8708f1..942a5e9 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,14 +94,14 @@ 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); + static std::string getPath(const std::string& name); private: - class TilemapImpl; - boost::shared_ptr impl_; + class Impl; + boost::shared_ptr impl_; };