[9188] Implement MoveGen::Interrupt call.

It can be used in time when need do some tasks before
another movement generator add on top to motion stack.
This just finish pair Interrupt->Reset similar Initilize->Finilize
In general movementgenerator have states:

Initilize=>Interrupt<=>[-some addition movegen->]<=>Reset=>Finalize
This commit is contained in:
VladimirMangos 2010-01-16 06:53:17 +03:00
parent cc062f16ac
commit 132b1cbabd
14 changed files with 61 additions and 24 deletions

View file

@ -34,7 +34,8 @@ class MANGOS_DLL_SPEC PointMovementGenerator
void Initialize(T &);
void Finalize(T &){}
void Reset(T &unit){unit.StopMoving();}
void Interrupt(T &) {}
void Reset(T &unit){ unit.StopMoving(); }
bool Update(T &, const uint32 &diff);
void MovementInform(T &);