the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 24 lines 460 B view raw
1#pragma once 2using namespace std; 3 4#include "Throwable.h" 5 6class HitResult; 7 8class Snowball : public Throwable 9{ 10public: 11 eINSTANCEOF GetType() { return eTYPE_SNOWBALL; } 12 static Entity *create(Level *level) { return new Snowball(level); } 13 14private: 15 void _init(); 16 17public: 18 Snowball(Level *level); 19 Snowball(Level *level, shared_ptr<LivingEntity> mob); 20 Snowball(Level *level, double x, double y, double z); 21 22protected: 23 virtual void onHit(HitResult *res); 24};