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

#include "Goal.h"

class VillagerGolem;

class OfferFlowerGoal : public Goal
{
public:
	static const int OFFER_TICKS = 400;

private:
	VillagerGolem *golem;
	weak_ptr<Villager> villager;
	int _tick;

public:
	OfferFlowerGoal(VillagerGolem *golem);

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