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

#include "Goal.h"

class FleeSunGoal : public Goal
{
private:
	PathfinderMob *mob; // Owner of this goal
	double wantedX, wantedY, wantedZ;
	double speedModifier;
	Level *level;

public:
	FleeSunGoal(PathfinderMob *mob, double speedModifier);

	virtual bool canUse();
	virtual bool canContinueToUse();
	virtual void start();

private:
	Vec3 *getHidePos();

public:
	// 4J Added override to update ai elements when loading entity from schematics
	virtual void setLevel(Level *level) { this->level = level; }
};