summaryrefslogtreecommitdiff
path: root/src/monster_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster_type.hpp')
-rw-r--r--src/monster_type.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/monster_type.hpp b/src/monster_type.hpp
index 912c97d0..8353f228 100644
--- a/src/monster_type.hpp
+++ b/src/monster_type.hpp
@@ -2,9 +2,11 @@
#include "h-basic.h"
#include "monster_blow.hpp"
+#include "monster_race_fwd.hpp"
#include <cassert>
#include <vector>
+#include <memory>
/**
* Monster information for a specific monster.
@@ -67,6 +69,12 @@ struct monster_type
s16b possessor = 0; /* Is it under the control of a possessor ? */
/**
+ * @brief get the "effective race" of the monster. This incorporates
+ * the effects of the "ego" of the monster, if any.
+ */
+ std::shared_ptr<monster_race> race() const;
+
+ /**
* @brief wipe the object's state
*/
void wipe()