projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5208dfd
)
object/tilemap.hpp: Add an explanation to the boolean argument of ->get_movement().
author
Florian Forster
<supertux@octo.it>
Mon, 22 Feb 2010 07:10:29 +0000
(07:10 +0000)
committer
Florian Forster
<supertux@octo.it>
Mon, 22 Feb 2010 07:10:29 +0000
(07:10 +0000)
SVN-Revision: 6388
src/object/tilemap.hpp
patch
|
blob
|
history
diff --git
a/src/object/tilemap.hpp
b/src/object/tilemap.hpp
index
28f9407
..
8b3939b
100644
(file)
--- a/
src/object/tilemap.hpp
+++ b/
src/object/tilemap.hpp
@@
-76,7
+76,10
@@
public:
Vector get_offset() const
{ return offset; }
- Vector get_movement(bool actual = false) const
+ /** Get the movement of this tilemap. The collision detection code may need a
+ * non-negative y-movement. Passing `false' as the `actual' argument will
+ * provide that. Used exclusively in src/supertux/sector.cpp. */
+ Vector get_movement(bool actual) const
{
if(actual) {
return movement;