aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Abilities.h
blob: f5895cdd4c75ff345fcd75c298970cd4eaf1fac8 (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
#pragma once

class CompoundTag;

class Abilities
{
public:
	bool invulnerable;
	bool flying;
	bool mayfly;
	bool instabuild;
	bool mayBuild;

private:
	float flyingSpeed;
	float walkingSpeed;

public:
#ifdef _DEBUG_MENUS_ENABLED
	bool debugflying;
#endif

	Abilities();

	void addSaveData(CompoundTag *parentTag);
	void loadSaveData(CompoundTag *parentTag);

	float getFlyingSpeed();
	void setFlyingSpeed(float value);
	float getWalkingSpeed();
	void setWalkingSpeed(float value);
};