projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
supertux/tile.hpp: Implement Tile::is_slope().
[supertux.git]
/
src
/
supertux
/
tile.hpp
diff --git
a/src/supertux/tile.hpp
b/src/supertux/tile.hpp
index
c2b9bc5
..
4351f11
100644
(file)
--- a/
src/supertux/tile.hpp
+++ b/
src/supertux/tile.hpp
@@
-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: