diff options
Diffstat (limited to 'include/components/hit.hpp')
-rw-r--r-- | include/components/hit.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/components/hit.hpp b/include/components/hit.hpp index 334712b..45e6466 100644 --- a/include/components/hit.hpp +++ b/include/components/hit.hpp @@ -3,14 +3,14 @@ #include "base.hpp" +#include <attack.hpp> #include <texture.hpp> struct Hit : public Component { - Hit(int d, bool p = false) - : damage(d), pierce(p) {} + Hit(Attack* a) + : attack(a) {} - int damage; - bool pierce; + Attack* attack; TextureIterator effect; void fromXML(XMLElement* imp, XMLElement* def) final { |