blob: 7d17a43c4346e5668bdc1c1264a38cf256ced167 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#pragma once
#include "Animal.h"
#include "OwnableEntity.h"
class SitGoal;
class TamableAnimal : public Animal, public OwnableEntity
{
protected:
static const int DATA_FLAGS_ID = 16;
static const int DATA_OWNERUUID_ID = 17;
SitGoal *sitGoal;
public:
TamableAnimal(Level *level);
virtual ~TamableAnimal();
protected:
virtual void defineSynchedData();
public:
virtual void addAdditonalSaveData(CompoundTag *tag);
virtual void readAdditionalSaveData(CompoundTag *tag);
protected:
virtual void spawnTamingParticles(bool success);
public:
virtual void handleEntityEvent(byte id);
virtual bool isTame();
virtual void setTame(bool value);
virtual bool isSitting();
virtual void setSitting(bool value);
virtual wstring getOwnerUUID();
virtual void setOwnerUUID(const wstring &name);
virtual shared_ptr<Entity> getOwner();
virtual SitGoal *getSitGoal();
bool wantsToAttack(shared_ptr<LivingEntity> target, shared_ptr<LivingEntity> owner);
Team *getTeam();
bool isAlliedTo(shared_ptr<LivingEntity> other);
};
|