the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 19 lines 315 B view raw
1#pragma once 2 3#include "TargetGoal.h" 4 5class TamableAnimal; 6 7class OwnerHurtTargetGoal : public TargetGoal 8{ 9private: 10 TamableAnimal *tameAnimal; // Owner of this goal 11 weak_ptr<LivingEntity> ownerLastHurt; 12 int timestamp; 13 14public: 15 OwnerHurtTargetGoal(TamableAnimal *tameAnimal); 16 17 bool canUse(); 18 void start(); 19};