* 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>
66 lines
1.2 KiB
C++
66 lines
1.2 KiB
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Monster.h"
|
|
|
|
class Level;
|
|
class DamageSource;
|
|
|
|
class Creeper : public Monster
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_CREEPER; }
|
|
static Entity *create(Level *level) { return new Creeper(level); }
|
|
|
|
private:
|
|
static const int DATA_SWELL_DIR = 16;
|
|
static const int DATA_IS_POWERED = 17;
|
|
|
|
int oldSwell;
|
|
int swell;
|
|
int maxSwell;
|
|
int explosionRadius;
|
|
|
|
void _init();
|
|
|
|
public:
|
|
Creeper(Level *level);
|
|
|
|
protected:
|
|
void registerAttributes();
|
|
|
|
public:
|
|
virtual bool useNewAi();
|
|
|
|
virtual int getMaxFallDistance();
|
|
|
|
protected:
|
|
virtual void causeFallDamage(float distance);
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
virtual void addAdditonalSaveData(CompoundTag *entityTag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
protected:
|
|
virtual void tick();
|
|
|
|
protected:
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
|
|
public:
|
|
virtual void die(DamageSource *source);
|
|
virtual bool doHurtTarget(shared_ptr<Entity> target);
|
|
virtual bool isPowered();
|
|
float getSwelling(float a);
|
|
|
|
protected:
|
|
int getDeathLoot();
|
|
|
|
public:
|
|
int getSwellDir();
|
|
void setSwellDir(int dir);
|
|
void thunderHit(const LightningBolt *lightningBolt) ;
|
|
};
|