aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/RestrictOpenDoorGoal.h
blob: 184ca513cf5caefdc0e8b85aa691dce9609132e8 (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 "Goal.h"

class PathfinderMob;
class DoorInfo;

class RestrictOpenDoorGoal : public Goal
{
private:
	PathfinderMob *mob;
	weak_ptr<DoorInfo> doorInfo;

public:
	RestrictOpenDoorGoal(PathfinderMob *mob);

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