the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 24 lines 603 B view raw
1#pragma once 2 3#include "Fireball.h" 4 5class HitResult; 6 7class SmallFireball : public Fireball 8{ 9public: 10 eINSTANCEOF GetType() { return eTYPE_SMALL_FIREBALL; } 11 static Entity *create(Level *level) { return new SmallFireball(level); } 12 13public: 14 SmallFireball(Level *level); 15 SmallFireball(Level *level, shared_ptr<LivingEntity> mob, double xa, double ya, double za); 16 SmallFireball(Level *level, double x, double y, double z, double xa, double ya, double za); 17 18protected: 19 virtual void onHit(HitResult *res); 20 21public: 22 virtual bool isPickable(); 23 virtual bool hurt(DamageSource *source, float damage); 24};