diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 21:34:22 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 21:34:22 +0100 |
commit | 33ad2761a0acb79ce938ebf518a731264617c03d (patch) | |
tree | 83ed49212f661dd8c887b07a0b5888f3e2b3826d /src/Mobs/Villager.h | |
parent | Villagers: Harvesting is more rare. (diff) | |
download | cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar.gz cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar.bz2 cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar.lz cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar.xz cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.tar.zst cuberite-33ad2761a0acb79ce938ebf518a731264617c03d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Villager.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Mobs/Villager.h b/src/Mobs/Villager.h index 235e1f40e..20dbada61 100644 --- a/src/Mobs/Villager.h +++ b/src/Mobs/Villager.h @@ -34,19 +34,23 @@ public: virtual void Tick (float a_Dt, cChunk & a_Chunk) override; // cVillager functions - void HandleFarmer(); bool IsBlockFarmable(BLOCKTYPE a_BlockType); + // Farmer functions + void HandleFarmerAttemptSpecialAction(); + void HandleFarmerAction(); + void HandleFarmerNoCountDown(); + // Get and set functions. int GetVilType(void) const { return m_Type; } Vector3i GetCropsPos(void) const { return m_CropsPos; } - bool DidFindCrops(void) const { return m_DidFindCrops; } + bool DoesHaveActionActivated(void) const { return m_VillagerAction; } private: int m_ActionCountDown; int m_Type; - bool m_DidFindCrops; + bool m_VillagerAction; Vector3i m_CropsPos; } ; |