aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/BreakDoorGoal.h
blob: 5c546d38ef8392057c7d64bfe5bf957b22f6c2bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "DoorInteractGoal.h"
#include "SharedConstants.h"

class BreakDoorGoal : public DoorInteractGoal
{
private:
	static const int DOOR_BREAK_TIME = SharedConstants::TICKS_PER_SECOND * 12;

	int breakTime;
	int lastBreakProgress;

public:
	BreakDoorGoal(Mob *mob);

	virtual bool canUse();
	virtual void start();
	virtual void stop();
	virtual bool canContinueToUse();
	virtual void tick();
};