projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rudimentary approach at water splash effect for badguys
[supertux.git]
/
src
/
badguy
/
badguy.hpp
diff --git
a/src/badguy/badguy.hpp
b/src/badguy/badguy.hpp
index
8e9670b
..
092ff54
100644
(file)
--- a/
src/badguy/badguy.hpp
+++ b/
src/badguy/badguy.hpp
@@
-96,6
+96,8
@@
public:
bool is_frozen() const;
bool is_frozen() const;
+ bool is_in_water() const;
+
protected:
enum State {
STATE_INIT,
protected:
enum State {
STATE_INIT,
@@
-212,6
+214,7
@@
protected:
bool frozen;
bool ignited; /**< true if this badguy is currently on fire */
bool frozen;
bool ignited; /**< true if this badguy is currently on fire */
+ bool in_water; /** < true if the badguy is currently in water */
std::string dead_script; /**< script to execute when badguy is killed */
std::string dead_script; /**< script to execute when badguy is killed */