summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorDayLightBurner.h
blob: 0acdeea407ee6d80e2bcc7a96c17de00c156db58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

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

// fwds
class cMonster;
class cEntity;
class cChunk;

class cBehaviorDayLightBurner : cBehavior
{
public:
	void AttachToMonster(cMonster & a_Parent) override;

	void PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
	bool WouldBurnAt(Vector3d a_Location, cChunk & a_Chunk);

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

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