aboutsummaryrefslogtreecommitdiffstats
path: root/include/components/aggro.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/components/aggro.hpp')
-rw-r--r--include/components/aggro.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/components/aggro.hpp b/include/components/aggro.hpp
index 17d646c..f559e6f 100644
--- a/include/components/aggro.hpp
+++ b/include/components/aggro.hpp
@@ -7,18 +7,17 @@
* Causes the entity to get mad at the player, charge and fight.
*/
struct Aggro : public Component {
- Aggro(const std::string& a)
- : arena(a) {}
+ Aggro(bool y = false)
+ : yes(y) {}
Aggro(XMLElement* imp, XMLElement* def) {
fromXML(imp, def);
}
- std::string arena;
+ bool yes;
void fromXML(XMLElement* imp, XMLElement* def) final {
- (void)imp;
- // TODO null check..?, imp given
- arena = def->StrAttribute("arena");
+ (void)imp, (void)def;
+ // TODO
}
};