1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#pragma once #include "Goal.h" class EntityHorse; class RunAroundLikeCrazyGoal : public Goal { private: EntityHorse *horse; // Owner double speedModifier; double posX, posY, posZ; public: RunAroundLikeCrazyGoal(EntityHorse *mob, double speedModifier); bool canUse(); void start(); bool canContinueToUse(); void tick(); };