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


                             
                 
                     
 
                                   


       
                            
                                                  

                                                    
                                                                                         

                                                                                        
                                                                             



                                           
                                                 
                           
  
#pragma once

// The mob will wander around
#include <chrono>
#include "Behavior.h"

class cBehaviorWanderer : cBehavior
{

public:
	cBehaviorWanderer();
	void AttachToMonster(cMonster & a_Parent);

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


private:
	cMonster * m_Parent;  // Our Parent
	std::chrono::milliseconds m_IdleInterval;
	bool m_OldDontCare;
};