mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 06:17:13 +00:00
24 lines
425 B
C++
24 lines
425 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class VillagerGolem;
|
|
|
|
class OfferFlowerGoal : public Goal {
|
|
public:
|
|
static const int OFFER_TICKS = 400;
|
|
|
|
private:
|
|
VillagerGolem* golem;
|
|
std::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();
|
|
}; |