5 #include "../Blocks/ChunkInterface.h" 34 virtual
void Tick (
std::chrono::milliseconds a_Dt,
cChunk & a_Chunk) override;
Vector3i GetCropsPos(void) const
void HandleFarmerPrepareFarmCrops()
Searches in a 11x7x11 area for crops.
void HandleFarmerTryHarvestCrops()
Looks if the farmer has reached it's destination, and if it's still crops and the destination is clos...
bool IsBlockFarmable(BLOCKTYPE a_BlockType)
return true if the given blocktype are: crops, potatoes or carrots.
unsigned char BLOCKTYPE
The datatype used by blockdata.
cVillager(eVillagerType VillagerType)
int GetVilType(void) const
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
When hit by someone, run away.
void HandleFarmerPlaceCrops()
Replaces the crops he harvested.
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
bool DoesHaveActionActivated(void) const
#define CLASS_PROTODEF(classname)