blob: e381b5e36c3634f9f7d9728d49b5cb014846bddf (
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
27
|
#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.
Connections to other behaviors:
- None
Special connections:
- Relies on the polymorphic cMonster::GetFollowedItems function to determine the followed items.
*/
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;
};
|