summaryrefslogtreecommitdiffstats
path: root/src/Entities/EntityEffects.h
blob: 6ddd86b01c7c620a614db92d9186d50f0bba0400 (plain) (blame)
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
52
53
#pragma once

// tolua_begin
class cEntityEffect {
public:
	
	/** All types of entity effects (numbers correspond to IDs) */
	enum eType
	{
		efSpeed          = 1,
		efSlowness       = 2,
		efHaste          = 3,
		efMiningFatigue  = 4,
		efStrength       = 5,
		efInstantHealth  = 6,
		efInstantDamage  = 7,
		efJumpBoost      = 8,
		efNausia         = 9,
		efRegeneration   = 10,
		efResistance     = 11,
		efFireResistance = 12,
		efWaterBreathing = 13,
		efInvisibility   = 14,
		efBlindness      = 15,
		efNightVision    = 16,
		efHunger         = 17,
		efWeakness       = 18,
		efPoison         = 19,
		efWither         = 20,
		efHealthBoost    = 21,
		efAbsorption     = 22,
		efSaturation     = 23,
	} ;
	
	/** The duration of the effect */
	int m_Ticks;
	
	/** How strong the effect will be applied */
	short m_Intensity;
	
	/**
	 *  An empty entity effect
	 */
	cEntityEffect();
	
	/**
	 *  An entity effect
	 *  @param a_Ticks      The duration of the effect
	 *  @param a_Intensity  How strong the effect will be applied
	 */
	cEntityEffect(int a_Ticks, short a_Intensity);
};
// tolua_end