summaryrefslogtreecommitdiffstats
path: root/src/MonsterConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MonsterConfig.h')
-rw-r--r--src/MonsterConfig.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/MonsterConfig.h b/src/MonsterConfig.h
index 371d324c2..122cd43fd 100644
--- a/src/MonsterConfig.h
+++ b/src/MonsterConfig.h
@@ -17,12 +17,37 @@ class cMonsterConfig
public:
cMonsterConfig(void);
~cMonsterConfig();
+
+ struct sReturnAttributes
+ {
+ int m_SightDistance;
+ int m_AttackDamage;
+ int m_AttackRange;
+ double m_AttackRate;
+ int m_MaxHealth;
+ bool m_IsFireproof;
+ };
- void AssignAttributes(cMonster * a_Monster, const AString & a_Name);
+ sReturnAttributes ReturnAttributes(const AString & a_Name);
private:
- struct sAttributesStruct;
- struct sMonsterConfigState;
+ struct sAttributesStruct
+ {
+ AString m_Name;
+ int m_SightDistance;
+ int m_AttackDamage;
+ int m_AttackRange;
+ double m_AttackRate;
+ int m_MaxHealth;
+ bool m_IsFireproof;
+ };
+
+ struct sMonsterConfigState
+ {
+ AString MonsterTypes;
+ std::list< sAttributesStruct > AttributesList;
+ };
+
sMonsterConfigState* m_pState;
void Initialize();
} ;