projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch by mathnerd314 <man.is.allan@gmail.com> resolves issue 0000302: Mr. Ice Block...
[supertux.git]
/
src
/
object
/
tilemap.hpp
diff --git
a/src/object/tilemap.hpp
b/src/object/tilemap.hpp
index
d6ee518
..
d67049d
100644
(file)
--- a/
src/object/tilemap.hpp
+++ b/
src/object/tilemap.hpp
@@
-90,6
+90,11
@@
public:
float get_y_offset() const
{ return y_offset; }
float get_y_offset() const
{ return y_offset; }
+ const Vector& get_movement() const
+ {
+ return movement;
+ }
+
void set_x_offset(float x_offset)
{ this->x_offset = x_offset; }
void set_x_offset(float x_offset)
{ this->x_offset = x_offset; }
@@
-162,6
+167,7
@@
private:
int z_pos;
float x_offset;
float y_offset;
int z_pos;
float x_offset;
float y_offset;
+ Vector movement; /**< The movement that happened last frame */
DrawingEffect drawing_effect;
float alpha; /**< requested tilemap opacity */
DrawingEffect drawing_effect;
float alpha; /**< requested tilemap opacity */