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