blob: bb2e67ae071a9f054bdd72fd09e4f0bad0fbd693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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, 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);
};
|