summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Monster.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-05 22:40:08 +0200
committermadmaxoft <github@xoft.cz>2013-09-05 22:40:08 +0200
commitff762a7ece6400eaeb5e21f3fea7cad00786a8d9 (patch)
treed8c5be799168cd1c50a170e549db2b3812c7b9f6 /source/Mobs/Monster.h
parentMerge branch 'master' of git://github.com/tigerw/MCServer into tigerw-master (diff)
downloadcuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.gz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.bz2
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.lz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.xz
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.tar.zst
cuberite-ff762a7ece6400eaeb5e21f3fea7cad00786a8d9.zip
Diffstat (limited to 'source/Mobs/Monster.h')
-rw-r--r--source/Mobs/Monster.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/Mobs/Monster.h b/source/Mobs/Monster.h
index 755678d39..5f33d4450 100644
--- a/source/Mobs/Monster.h
+++ b/source/Mobs/Monster.h
@@ -107,6 +107,9 @@ public:
void SetAttackDamage(float ad);
void SetSightDistance(float sd);
+ /// Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick
+ void SetBurnsInDaylight(bool a_BurnsInDaylight) { a_BurnsInDaylight = a_BurnsInDaylight; }
+
enum MState{ATTACKING, IDLE, CHASING, ESCAPING} m_EMState;
enum MPersonality{PASSIVE,AGGRESSIVE,COWARDLY} m_EMPersonality;
@@ -134,8 +137,12 @@ protected:
float m_AttackDamage;
float m_AttackRange;
float m_AttackInterval;
+
+ bool m_BurnsInDaylight;
void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0);
+
+ void HandleDaylightBurning(cChunk & a_Chunk);
} ; // tolua_export