Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Mobs
Witch.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
AggressiveMonster.h
"
5
6
7
8
9
10
class
cWitch
:
11
public
cAggressiveMonster
12
{
13
using
Super
=
cAggressiveMonster
;
14
15
public
:
16
17
cWitch
();
18
19
CLASS_PROTODEF
(
cWitch
)
20
21
virtual
void
GetDrops
(
cItems
& a_Drops,
cEntity
* a_Killer =
nullptr
)
override
;
22
23
bool
IsAngry
(
void
)
const
{
return
((
m_EMState
==
ATTACKING
) || (
m_EMState
==
CHASING
)); }
24
} ;
25
26
27
28
CLASS_PROTODEF
#define CLASS_PROTODEF(classname)
Definition:
Entity.h:13
AggressiveMonster.h
cEntity
Definition:
Entity.h:76
cItems
This class bridges a vector of cItem for safe access via Lua.
Definition:
Item.h:215
cAggressiveMonster
Definition:
AggressiveMonster.h:12
cAggressiveMonster::cAggressiveMonster
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)
Definition:
AggressiveMonster.cpp:14
cMonster::CHASING
@ CHASING
Definition:
Monster.h:40
cMonster::ATTACKING
@ ATTACKING
Definition:
Monster.h:40
cMonster::m_EMState
enum cMonster::MState m_EMState
cWitch
Definition:
Witch.h:12
cWitch::cWitch
cWitch()
Definition:
Witch.cpp:11
cWitch::GetDrops
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
Definition:
Witch.cpp:20
cWitch::IsAngry
bool IsAngry(void) const
Definition:
Witch.h:23
Generated on Fri Oct 25 2024 05:01:15 for Cuberite by
1.9.1