Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Mobs
Giant.cpp
Go to the documentation of this file.
1
2
#include "
Globals.h
"
// NOTE: MSVC stupidness requires this to be the same across all modules
3
4
#include "
Giant.h
"
5
6
7
8
9
10
cGiant::cGiant
(
void
) :
11
Super
(
"Giant"
,
mtGiant
,
"entity.zombie.hurt"
,
"entity.zombie.death"
,
"entity.zombie.ambient"
, 3.6f, 12)
12
{
13
14
}
15
16
17
18
19
20
void
cGiant::GetDrops
(
cItems
& a_Drops,
cEntity
* a_Killer)
21
{
22
AddRandomDropItem
(a_Drops, 10, 50,
E_ITEM_ROTTEN_FLESH
);
23
}
24
25
26
27
E_ITEM_ROTTEN_FLESH
@ E_ITEM_ROTTEN_FLESH
Definition:
BlockType.h:412
Globals.h
Giant.h
mtGiant
@ mtGiant
Definition:
MonsterTypes.h:32
cEntity
Definition:
Entity.h:76
cItems
This class bridges a vector of cItem for safe access via Lua.
Definition:
Item.h:215
cGiant::cGiant
cGiant(void)
Definition:
Giant.cpp:10
cGiant::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:
Giant.cpp:20
cMonster::AddRandomDropItem
void AddRandomDropItem(cItems &a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth=0)
Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops.
Definition:
Monster.cpp:1518
Generated on Fri Oct 25 2024 05:01:15 for Cuberite by
1.9.1