the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 32 lines 617 B view raw
1#pragma once 2 3#include "Goal.h" 4 5class Mob; 6class Level; 7 8class LookAtPlayerGoal : public Goal 9{ 10private: 11 Mob *mob; // Owner of this goal 12 13protected: 14 weak_ptr<Entity> lookAt; 15 16private: 17 float lookDistance; 18 int lookTime; 19 float probability; 20 const type_info& lookAtType; 21 22public: 23 LookAtPlayerGoal(Mob *mob, const type_info& lookAtType, float lookDistance); 24 LookAtPlayerGoal(Mob *mob, const type_info& lookAtType, float lookDistance, float probability); 25 virtual ~LookAtPlayerGoal() {} 26 27 virtual bool canUse(); 28 virtual bool canContinueToUse(); 29 virtual void start(); 30 virtual void stop(); 31 virtual void tick(); 32};