mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 17:07:16 +00:00
25 lines
667 B
C++
25 lines
667 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<LivingEntity> 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, float damage);
|
|
}; |