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
/
bomb.hpp
diff --git
a/src/badguy/bomb.hpp
b/src/badguy/bomb.hpp
index
b2da78b
..
abd8b9d
100644
(file)
--- a/
src/badguy/bomb.hpp
+++ b/
src/badguy/bomb.hpp
@@
-35,6
+35,8
@@
public:
void kill_fall();
void explode();
+ virtual Bomb* clone() const { return new Bomb(*this); }
+
private:
enum State {
STATE_TICKING,