projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Small miniswig update to use less dependencies
[supertux.git]
/
src
/
worldmap
/
tux.hpp
diff --git
a/src/worldmap/tux.hpp
b/src/worldmap/tux.hpp
index
4c36042
..
ebecefe
100644
(file)
--- a/
src/worldmap/tux.hpp
+++ b/
src/worldmap/tux.hpp
@@
-48,6
+48,8
@@
private:
float offset;
bool moving;
float offset;
bool moving;
+ bool ghost_mode;
+
void stop();
bool canWalk(int tile_data, Direction dir); /**< check if we can leave a tile (with given "tile_data") in direction "dir" */
void stop();
bool canWalk(int tile_data, Direction dir); /**< check if we can leave a tile (with given "tile_data") in direction "dir" */
@@
-65,6
+67,9
@@
public:
void set_direction(Direction dir);
void set_direction(Direction dir);
+ void set_ghost_mode(bool enabled);
+ bool get_ghost_mode();
+
bool is_moving() const { return moving; }
Vector get_pos();
Vector get_tile_pos() const { return tile_pos; }
bool is_moving() const { return moving; }
Vector get_pos();
Vector get_tile_pos() const { return tile_pos; }