the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 44 lines 833 B view raw
1#pragma once 2using namespace std; 3 4#include "PathfinderMob.h" 5#include "Enemy.h" 6 7class Level; 8class CompoundTag; 9class DamageSource; 10 11class Monster : public PathfinderMob, public Enemy 12{ 13public: 14 eINSTANCEOF GetType() { return eTYPE_MONSTER; } 15 static Entity *create(Level *level) { return NULL; } 16 17public: 18 Monster(Level *level); 19 20 virtual void aiStep(); 21 virtual void tick(); 22 23protected: 24 virtual shared_ptr<Entity> findAttackTarget(); 25 26public: 27 virtual bool hurt(DamageSource *source, float dmg); 28 virtual bool doHurtTarget(shared_ptr<Entity> target); 29 30protected: 31 virtual void checkHurtTarget(shared_ptr<Entity> target, float distance); 32 33public: 34 virtual float getWalkTargetValue(int x, int y, int z); 35 36protected: 37 virtual bool isDarkEnoughToSpawn(); 38 39public: 40 virtual bool canSpawn(); 41 42protected: 43 void registerAttributes(); 44};