summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorDayLightBurner.h
blob: 920f9d5c7a10bf78ac3bff34e4acb49c2c6fefd0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

// mobTodo I just need vector3d
#include "Behavior.h"
#include "../../World.h"

class cBehaviorDayLightBurner : cBehavior
{
public:
	void AttachToMonster(cMonster & a_Parent);
	void PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
	static bool WouldBurnAt(Vector3d a_Location, cChunk & a_Chunk, cMonster & a_Monster);

private:
	cMonster * m_Parent;  // Our Parent
	cEntity * m_Attacker;  // The entity we're running away from
};