mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-19 15:37:13 +00:00
25 lines
393 B
C++
25 lines
393 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "Goal.h"
|
|
|
|
class Villager;
|
|
class VillagerGolem;
|
|
|
|
class TakeFlowerGoal : public Goal {
|
|
private:
|
|
Villager* villager;
|
|
std::weak_ptr<VillagerGolem> golem;
|
|
int pickupTick;
|
|
bool takeFlower;
|
|
|
|
public:
|
|
TakeFlowerGoal(Villager* villager);
|
|
|
|
bool canUse();
|
|
bool canContinueToUse();
|
|
void start();
|
|
void stop();
|
|
void tick();
|
|
}; |