Files
MinecraftConsoles/Minecraft.World/SmallFireball.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

24 lines
597 B
C++

#pragma once
#include "Fireball.h"
class HitResult;
class SmallFireball : public Fireball
{
public:
eINSTANCEOF GetType() { return eTYPE_SMALL_FIREBALL; }
static Entity *create(Level *level) { return new SmallFireball(level); }
public:
SmallFireball(Level *level);
SmallFireball(Level *level, std::shared_ptr<Mob> mob, double xa, double ya, double za);
SmallFireball(Level *level, double x, double y, double z, double xa, double ya, double za);
protected:
virtual void onHit(HitResult *res);
public:
virtual bool isPickable();
virtual bool hurt(DamageSource *source, int damage);
};