* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
65 lines
1.4 KiB
C++
65 lines
1.4 KiB
C++
#pragma once
|
|
|
|
using namespace std;
|
|
|
|
#include "Animal.h"
|
|
|
|
class Player;
|
|
class LightningBolt;
|
|
class ControlledByPlayerGoal;
|
|
|
|
class Pig : public Animal
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_PIG; }
|
|
static Entity *create(Level *level) { return new Pig(level); }
|
|
private:
|
|
static const int DATA_SADDLE_ID = 16;
|
|
ControlledByPlayerGoal *controlGoal;
|
|
|
|
public:
|
|
Pig(Level *level);
|
|
|
|
virtual bool useNewAi();
|
|
|
|
protected:
|
|
virtual void registerAttributes();
|
|
virtual void newServerAiStep();
|
|
|
|
public:
|
|
virtual bool canBeControlledByRider();
|
|
|
|
protected:
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
protected:
|
|
virtual int getAmbientSound();
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
virtual void playStepSound(int xt, int yt, int zt, int t);
|
|
|
|
public:
|
|
virtual bool mobInteract(shared_ptr<Player> player);
|
|
|
|
protected:
|
|
virtual int getDeathLoot();
|
|
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
|
|
|
|
public:
|
|
bool hasSaddle();
|
|
void setSaddle(bool value);
|
|
virtual void thunderHit(const LightningBolt *lightningBolt);
|
|
|
|
protected:
|
|
virtual void causeFallDamage(float distance);
|
|
|
|
public:
|
|
virtual shared_ptr<AgableMob> getBreedOffspring(shared_ptr<AgableMob> target);
|
|
bool isFood(shared_ptr<ItemInstance> itemInstance);
|
|
ControlledByPlayerGoal *getControlGoal();
|
|
};
|