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

            
 
                            

                     

                                                                    
                                              

       
                                                  

                                                                                

        

                            
  
#pragma once


class cBehaviorItemFollower;

#include "Behavior.h"
/** Makes the mob follow specific items when held by the player.
Currently relies on cMonster::GetFollowedItems for the item list. */
class cBehaviorItemFollower : public cBehavior
{
public:
	void AttachToMonster(cMonster & a_Parent);
	bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk);
	void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk);

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