summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Chicken.h
blob: 6d99dd8c2751e61d80c4305b92ae6f39238cbcb9 (plain) (tree)
1
2
3
4
5
6
7
8
9

            
                           
                                          




                
                       
 
                               
 
       
                       
 
                                
 
                                                                                       
 



                                                                
 
                                                  
 
        




                                                     
 
                                                   

   
 
 
#pragma once

#include "PassiveMonster.h"
#include "Behaviors/BehaviorItemDropper.h"




class cChicken :
	public cMonster
{
	typedef cMonster super;

public:
	cChicken(void);

	CLASS_PROTODEF(cChicken)

	virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;

	virtual void GetFollowedItems(cItems & a_Items) override
	{
		a_Items.Add(E_ITEM_SEEDS);
	}

	virtual void HandleFalling(void) override;

private:
	// Tick controlling behaviors
	cBehaviorBreeder m_BehaviorBreeder;
	cBehaviorItemFollower m_BehaviorItemFollower;
	cBehaviorCoward m_BehaviorCoward;
	cBehaviorWanderer m_BehaviorWanderer;

	cBehaviorItemDropper m_BehaviorItemDropper;
} ;