the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 25 lines 390 B view raw
1#pragma once 2 3#include "Goal.h" 4 5class VillagerGolem; 6 7class OfferFlowerGoal : public Goal 8{ 9public: 10 static const int OFFER_TICKS = 400; 11 12private: 13 VillagerGolem *golem; 14 weak_ptr<Villager> villager; 15 int _tick; 16 17public: 18 OfferFlowerGoal(VillagerGolem *golem); 19 20 virtual bool canUse(); 21 virtual bool canContinueToUse(); 22 virtual void start(); 23 virtual void stop(); 24 virtual void tick(); 25};