the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 42 lines 1.0 kB view raw
1#pragma once 2 3#include "Animal.h" 4#include "OwnableEntity.h" 5 6class SitGoal; 7 8class TamableAnimal : public Animal, public OwnableEntity 9{ 10protected: 11 static const int DATA_FLAGS_ID = 16; 12 static const int DATA_OWNERUUID_ID = 17; 13 14 SitGoal *sitGoal; 15 16public: 17 TamableAnimal(Level *level); 18 virtual ~TamableAnimal(); 19 20protected: 21 virtual void defineSynchedData(); 22 23public: 24 virtual void addAdditonalSaveData(CompoundTag *tag); 25 virtual void readAdditionalSaveData(CompoundTag *tag); 26protected: 27 virtual void spawnTamingParticles(bool success); 28 29public: 30 virtual void handleEntityEvent(byte id); 31 virtual bool isTame(); 32 virtual void setTame(bool value); 33 virtual bool isSitting(); 34 virtual void setSitting(bool value); 35 virtual wstring getOwnerUUID(); 36 virtual void setOwnerUUID(const wstring &name); 37 virtual shared_ptr<Entity> getOwner(); 38 virtual SitGoal *getSitGoal(); 39 bool wantsToAttack(shared_ptr<LivingEntity> target, shared_ptr<LivingEntity> owner); 40 Team *getTeam(); 41 bool isAlliedTo(shared_ptr<LivingEntity> other); 42};