the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Goal.h"
4
5class Wolf;
6
7class BegGoal : public Goal
8{
9private:
10 Wolf *wolf; // Owner of this goal
11 weak_ptr<Player> player;
12 Level *level;
13 float lookDistance;
14 int lookTime;
15
16public:
17 BegGoal(Wolf *wolf, float lookDistance);
18
19 virtual bool canUse();
20 virtual bool canContinueToUse();
21 virtual void start();
22 virtual void stop();
23 virtual void tick();
24
25private:
26 bool playerHoldingInteresting(shared_ptr<Player> player);
27
28public:
29 // 4J Added override to update ai elements when loading entity from schematics
30 virtual void setLevel(Level *level) { this->level = level; }
31};