Mobs fleeing and getting assistance feature implementaion. Author: Neo2003

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-21 10:48:00 -05:00
parent b7053ecc0d
commit 67c84b1f3d
20 changed files with 245 additions and 97 deletions
+17
View File
@@ -61,5 +61,22 @@ class TRINITY_DLL_SPEC FleeingMovementGenerator
DestinationHolder< Traveller<T> > i_destinationHolder;
};
class MANGOS_DLL_SPEC TimedFleeingMovementGenerator
: public FleeingMovementGenerator<Creature>
{
public:
TimedFleeingMovementGenerator(uint64 fright, uint32 time) :
FleeingMovementGenerator<Creature>(fright),
i_totalFleeTime(time) {}
MovementGeneratorType GetMovementGeneratorType() { return TIMED_FLEEING_MOTION_TYPE; }
bool Update(Unit &, const uint32 &);
void Finalize(Unit &);
private:
TimeTracker i_totalFleeTime;
};
#endif