Cuberite
A lightweight, fast and extensible game server for Minecraft
PassiveAggressiveMonster.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "AggressiveMonster.h"
5 
6 
7 
8 
9 
11  public cAggressiveMonster
12 {
14 
15 public:
16 
18  const AString & a_ConfigName,
19  eMonsterType a_MobType,
20  const AString & a_SoundHurt,
21  const AString & a_SoundDeath,
22  const AString & a_SoundAmbient,
23  float a_Width,
24  float a_Height
25  );
26 
27  virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
28  virtual void EventSeePlayer(cPlayer *, cChunk & a_Chunk) override;
29 } ;
30 
31 
32 
33 
eMonsterType
Identifies individual monster type.
Definition: MonsterTypes.h:11
std::string AString
Definition: StringUtils.h:11
Definition: Chunk.h:36
Definition: Entity.h:76
Definition: Player.h:29
cAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
cPassiveAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
virtual void EventSeePlayer(cPlayer *, cChunk &a_Chunk) override
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.