diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 18:33:57 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 18:33:57 +0100 |
commit | 9807056a9cfcce00cf5c33ce6eae25f818ec9cf7 (patch) | |
tree | da986ae608d3d8cdf0b7ffc39256f13cd0f05f2c /src/Mobs/Villager.h | |
parent | Villagers: Farmers now replant the crops. (diff) | |
download | cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar.gz cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar.bz2 cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar.lz cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar.xz cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.tar.zst cuberite-9807056a9cfcce00cf5c33ce6eae25f818ec9cf7.zip |
Diffstat (limited to 'src/Mobs/Villager.h')
-rw-r--r-- | src/Mobs/Villager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mobs/Villager.h b/src/Mobs/Villager.h index bdbcab39b..235e1f40e 100644 --- a/src/Mobs/Villager.h +++ b/src/Mobs/Villager.h @@ -29,12 +29,18 @@ public: CLASS_PROTODEF(cVillager); + // Override functions virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override; virtual void Tick (float a_Dt, cChunk & a_Chunk) override; + // cVillager functions void HandleFarmer(); bool IsBlockFarmable(BLOCKTYPE a_BlockType); + + // 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; } private: |