blob: d2e80ca96e38bc71a7b7de80262dcaff07b64336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef COMPONENTS_HIT_HPP_
#define COMPONENTS_HIT_HPP_
#include "base.hpp"
struct Hit : public Component {
Hit(int d, bool p = false)
: damage(d), pierce(p) {}
int damage;
bool pierce;
void fromXML(XMLElement* imp, XMLElement* def) final {
(void)imp;
(void)def;
}
};
#endif // COMPONENTS_HIT_HPP_
|