blob: 78fbe1d8414aa8d39a7ef2f60fc635fffa67448f (
plain)
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
#include "Goal.h"
class TemptGoal : public Goal
{
private:
PathfinderMob *mob;
float speed;
double px, py, pz, pRotX, pRotY;
weak_ptr<Player> player;
int calmDown ;
bool _isRunning;
int itemId;
bool canScare;
bool oldAvoidWater;
public:
TemptGoal(PathfinderMob *mob, float speed, int itemId, bool canScare);
bool canUse();
bool canContinueToUse();
void start();
void stop();
void tick();
bool isRunning();
};
|