mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 22:47:16 +00:00
27 lines
525 B
C++
27 lines
525 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class TemptGoal : public Goal {
|
|
private:
|
|
PathfinderMob* mob;
|
|
double speedModifier;
|
|
double px, py, pz, pRotX, pRotY;
|
|
std::weak_ptr<Player> player;
|
|
int calmDown;
|
|
bool _isRunning;
|
|
int itemId;
|
|
bool canScare;
|
|
bool oldAvoidWater;
|
|
|
|
public:
|
|
TemptGoal(PathfinderMob* mob, double speedModifier, int itemId,
|
|
bool canScare);
|
|
|
|
bool canUse();
|
|
bool canContinueToUse();
|
|
void start();
|
|
void stop();
|
|
void tick();
|
|
bool isRunning();
|
|
}; |