b3feddfef3
* 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 97a43994725008e35fceb984d5549df9c8cea470. * 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>
78 lines
1.4 KiB
C++
78 lines
1.4 KiB
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Mob.h"
|
|
#include "Enemy.h"
|
|
#include "ParticleTypes.h"
|
|
|
|
class Slime : public Mob, public Enemy
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_SLIME; }
|
|
static Entity *create(Level *level) { return new Slime(level); }
|
|
|
|
private:
|
|
static const int ID_SIZE = 16;
|
|
|
|
public:
|
|
float targetSquish;
|
|
float squish;
|
|
float oSquish;
|
|
|
|
private:
|
|
int jumpDelay;
|
|
|
|
void _init();
|
|
|
|
public:
|
|
Slime(Level *level);
|
|
|
|
protected:
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
using Mob::setSize;
|
|
|
|
virtual void setSize(int size);
|
|
virtual int getSize();
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
protected:
|
|
virtual ePARTICLE_TYPE getParticleName();
|
|
virtual int getSquishSound();
|
|
|
|
public:
|
|
virtual void tick();
|
|
|
|
protected:
|
|
virtual void serverAiStep();
|
|
virtual void decreaseSquish();
|
|
virtual int getJumpDelay();
|
|
virtual shared_ptr<Slime> createChild();
|
|
|
|
public:
|
|
virtual void remove();
|
|
virtual void playerTouch(shared_ptr<Player> player);
|
|
|
|
protected:
|
|
virtual bool isDealsDamage();
|
|
virtual int getAttackDamage();
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
virtual int getDeathLoot();
|
|
|
|
public:
|
|
virtual bool canSpawn();
|
|
|
|
protected:
|
|
virtual float getSoundVolume();
|
|
|
|
public:
|
|
virtual int getMaxHeadXRot();
|
|
|
|
protected:
|
|
virtual bool doPlayJumpSound();
|
|
virtual bool doPlayLandSound();
|
|
};
|