2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Goal.h"
|
|
|
|
|
|
|
|
|
|
class Creeper;
|
|
|
|
|
|
|
|
|
|
class SwellGoal : public Goal
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
Creeper *creeper;
|
2026-03-01 11:00:23 -06:00
|
|
|
weak_ptr<LivingEntity> target;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
SwellGoal(Creeper *creeper);
|
|
|
|
|
|
|
|
|
|
bool canUse();
|
|
|
|
|
void start();
|
|
|
|
|
void stop();
|
|
|
|
|
void tick();
|
|
|
|
|
};
|