Added GetCropsPos and DidFindCrops functions.
This commit is contained in:
parent
06c3bc1ea5
commit
9807056a9c
@ -29,12 +29,18 @@ public:
|
|||||||
|
|
||||||
CLASS_PROTODEF(cVillager);
|
CLASS_PROTODEF(cVillager);
|
||||||
|
|
||||||
|
// Override functions
|
||||||
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
||||||
virtual void Tick (float a_Dt, cChunk & a_Chunk) override;
|
virtual void Tick (float a_Dt, cChunk & a_Chunk) override;
|
||||||
|
|
||||||
|
// cVillager functions
|
||||||
void HandleFarmer();
|
void HandleFarmer();
|
||||||
bool IsBlockFarmable(BLOCKTYPE a_BlockType);
|
bool IsBlockFarmable(BLOCKTYPE a_BlockType);
|
||||||
|
|
||||||
|
// Get and set functions.
|
||||||
int GetVilType(void) const { return m_Type; }
|
int GetVilType(void) const { return m_Type; }
|
||||||
|
Vector3i GetCropsPos(void) const { return m_CropsPos; }
|
||||||
|
bool DidFindCrops(void) const { return m_DidFindCrops; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user