mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-24 05:52:19 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "PathfinderMob.h"
|
||||
|
||||
class AgableMob : public PathfinderMob
|
||||
{
|
||||
private:
|
||||
static const int DATA_AGE_ID = 12;
|
||||
|
||||
public:
|
||||
static const int BABY_START_AGE = -20 * 60 * 20;
|
||||
|
||||
private:
|
||||
float registeredBBWidth;
|
||||
float registeredBBHeight;
|
||||
|
||||
public:
|
||||
AgableMob(Level *level);
|
||||
|
||||
virtual bool mobInteract(shared_ptr<Player> player);
|
||||
|
||||
protected:
|
||||
virtual void defineSynchedData();
|
||||
|
||||
public:
|
||||
virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target) = 0;
|
||||
virtual int getAge();
|
||||
virtual void ageUp(int seconds);
|
||||
virtual void setAge(int age);
|
||||
virtual void addAdditonalSaveData(CompoundTag *tag);
|
||||
virtual void readAdditionalSaveData(CompoundTag *tag);
|
||||
virtual void aiStep();
|
||||
virtual bool isBaby();
|
||||
virtual void updateSize(bool isBaby);
|
||||
|
||||
protected:
|
||||
virtual void setSize(float w, float h);
|
||||
void internalSetSize(float scale);
|
||||
};
|
||||
Reference in new issue
Block a user