projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
First attempts at making BadGuys cloneable
[supertux.git]
/
src
/
badguy
/
yeti.hpp
diff --git
a/src/badguy/yeti.hpp
b/src/badguy/yeti.hpp
index
b9d4f45
..
30a6744
100644
(file)
--- a/
src/badguy/yeti.hpp
+++ b/
src/badguy/yeti.hpp
@@
-38,6
+38,8
@@
public:
void kill_squished(Player& player);
void kill_fall();
+ virtual Yeti* clone() const { return new Yeti(*this); }
+
private:
void run();
void jump_up();