summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorItemFollower.h
blob: 94f8bda1561106b7e0f2ce9ceac853acc663c471 (plain) (tree)
1
2
3
4
5
6
7
8


                                           
                            



                     


               
                                              

       
                                                   
 
                                                
 
                                                    

                                                                                         


        

                            
  
#pragma once

// Makes the mob follow specific held items
class cBehaviorItemFollower;

#include "Behavior.h"

// fwds
class cMonster;
class cItems;

class cBehaviorItemFollower : public cBehavior
{
public:
	cBehaviorItemFollower(cMonster * a_Parent);

	void GetBreedingItems(cItems & a_Items);

	// Functions our host Monster should invoke:
	bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
	void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;


private:
	/** Our parent */
	cMonster * m_Parent;
};