summaryrefslogtreecommitdiffstats
path: root/src/MonsterConfig.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-11-04 22:53:37 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-11-04 22:53:37 +0100
commit3d00e52d42edc69eb777c90c6e6f479a5a473598 (patch)
tree9ed2245653c77b7de86678c345254fe70342126e /src/MonsterConfig.h
parentMore player speed/position overrides (diff)
downloadcuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar.gz
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar.bz2
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar.lz
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar.xz
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.tar.zst
cuberite-3d00e52d42edc69eb777c90c6e6f479a5a473598.zip
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();
} ;