aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Blaze.h
blob: 7242e9c308d4f57847f995c666c9a629f49b8bd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once

#include "Monster.h"

class Blaze : public Monster
{
public:
	eINSTANCEOF GetType() { return eTYPE_BLAZE; }
	static Entity *create(Level *level) { return new Blaze(level); }

	//    private int nextBurnNeighborsTick;
private:
	float allowedHeightOffset;
	int nextHeightOffsetChangeTick;
	int attackCounter;

	static const int DATA_FLAGS_ID = 16;

public:
	Blaze(Level *level);

protected:
	virtual void registerAttributes();
	virtual void defineSynchedData();
	virtual int getAmbientSound();
	virtual int getHurtSound();
	virtual int getDeathSound();

public:
	virtual int getLightColor(float a);
	virtual float getBrightness(float a);
	virtual void aiStep();

protected:
	virtual void checkHurtTarget(shared_ptr<Entity> target, float d);
	virtual void causeFallDamage(float distance);
	virtual int getDeathLoot();

public:
	virtual bool isOnFire();

protected:
	virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);

public:
	bool isCharged();
	void setCharged(bool value);

protected:
	bool isDarkEnoughToSpawn();
};