the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 28 lines 591 B view raw
1#pragma once 2 3#include "Golem.h" 4#include "RangedAttackMob.h" 5 6class SnowMan : public Golem, public RangedAttackMob 7{ 8public: 9 eINSTANCEOF GetType() { return eTYPE_SNOWMAN; } 10 static Entity *create(Level *level) { return new SnowMan(level); } 11 12public: 13 SnowMan(Level *level); 14 virtual bool useNewAi(); 15 16protected: 17 virtual void registerAttributes(); 18 19public: 20 virtual void aiStep(); 21 22protected: 23 virtual int getDeathLoot(); 24 virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel); 25 26public: 27 virtual void performRangedAttack(shared_ptr<LivingEntity> target, float power); 28};