1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include "Goal.h" class Creeper; class SwellGoal : public Goal { private: Creeper *creeper; weak_ptr<Mob> target; public: SwellGoal(Creeper *creeper); bool canUse(); void start(); void stop(); void tick(); };