mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 09:18:19 +00:00
17 lines
316 B
C++
17 lines
316 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class LeapAtTargetGoal : public Goal {
|
|
private:
|
|
Mob* mob; // Owner of this goal
|
|
std::weak_ptr<LivingEntity> target;
|
|
float yd;
|
|
|
|
public:
|
|
LeapAtTargetGoal(Mob* mob, float yd);
|
|
|
|
virtual bool canUse();
|
|
virtual bool canContinueToUse();
|
|
virtual void start();
|
|
}; |