summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Behaviors/Behavior.cpp
blob: 86922427f3067465c949d635e5043d82e64e0785 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                              
                       


 
                                                                                  
 

                        
                                                                                                                






                     
                                                                                 
 

                        






                    
                                                                               
 

                        






                    
                                                                      
 

                        







                                                                          
                                                                          
 

                        







                                                                              
                                                                         
 

                        







                                                                             
                                                  













                                                                                  









                                                                                
#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "Behavior.h"
#include "../Monster.h"



bool cBehavior::IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Probably forgot to implement  cBehavior::IsControlDesired but implement  cBehavior::Tick");
	return false;
}





bool cBehavior::ControlStarting(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	return true;
}





bool cBehavior::ControlEnding(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	return true;
}





void cBehavior::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a TICK on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a PostTick on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::PreTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a PreTick on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::OnRightClicked(cPlayer & a_Player)
{
	LOGD("ERROR: Called onRightClicked on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::Destroyed()
{
	LOGD("ERROR: Called Destroyed on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}




void cBehavior::DoTakeDamage(TakeDamageInfo & a_TDI)
{
	UNUSED(a_TDI);
	LOGD("ERROR: Called DoTakeDamage on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}