Files
MinecraftConsoles/Minecraft.World/LavaSlime.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

46 lines
985 B
C++

#pragma once
#include "Slime.h"
class LavaSlime : public Slime
{
public:
eINSTANCEOF GetType() { return eTYPE_LAVASLIME; }
static Entity *create(Level *level) { return new LavaSlime(level); }
public:
LavaSlime(Level *level);
virtual bool canSpawn();
virtual int getArmorValue();
public:
virtual int getLightColor(float a);
virtual float getBrightness(float a);
protected:
virtual ePARTICLE_TYPE getParticleName();
virtual std::shared_ptr<Slime> createChild();
virtual int getDeathLoot();
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
public:
bool isOnFire();
protected:
int getJumpDelay();
virtual void decreaseSquish();
virtual void jumpFromGround();
virtual void causeFallDamage(float distance);
virtual bool isDealsDamage();
virtual int getAttackDamage();
virtual int getHurtSound();
virtual int getDeathSound();
virtual int getSquishSound();
public:
virtual bool isInLava();
protected:
virtual bool doPlayLandSound();
};