mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 13:37:08 +00:00
[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:
parent
cc062f16ac
commit
132b1cbabd
14 changed files with 61 additions and 24 deletions
|
|
@ -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 &);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue