supertux/tile.hpp: Implement Tile::is_slope().
[supertux.git] / src / supertux / tile.hpp
index c2b9bc5..4351f11 100644 (file)
@@ -123,6 +123,11 @@ public:
   int getData() const
   { return data; }
 
+  bool is_slope (void) const
+  {
+    return ((attributes & SLOPE) != 0);
+  }
+
   void print_debug(int id) const;
 
 private: