the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 43 lines 886 B view raw
1#include "stdafx.h" 2#include "BossMob.h" 3#include "BossMobPart.h" 4 5 6 7BossMobPart::BossMobPart(BossMob *bossMob, const wstring &id, float w, float h) : Entity(bossMob->level), bossMob( bossMob ), id( id ) 8{ 9 // 4J Stu - This function call had to be moved here from the Entity ctor to ensure that 10 // the derived version of the function is called 11 this->defineSynchedData(); 12 13 setSize(w, h); 14} 15 16 17void BossMobPart::defineSynchedData() 18{ 19} 20 21void BossMobPart::readAdditionalSaveData(CompoundTag *tag) 22{ 23} 24 25void BossMobPart::addAdditonalSaveData(CompoundTag *tag) 26{ 27} 28 29 30bool BossMobPart::isPickable() 31{ 32 return true; 33} 34 35bool BossMobPart::hurt(DamageSource *source, int damage) 36{ 37 return bossMob->hurt( dynamic_pointer_cast<BossMobPart>( shared_from_this() ), source, damage); 38} 39 40bool BossMobPart::is(shared_ptr<Entity> other) 41{ 42 return shared_from_this() == other || bossMob == other.get(); 43}