summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Villager.h6
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: