PDA

Просмотр полной версии : [9208] Big cleanup in UNIT_STAT_* use


newsbot
18.01.2010, 12:00
<pre>m src/game/ConfusedMovementGenerator.cpp
m src/game/CreatureAI.cpp
m src/game/CreatureEventAI.cpp
m src/game/FleeingMovementGenerator.cpp
m src/game/GridNotifiers.h
m src/game/HomeMovementGenerator.cpp
m src/game/IdleMovementGenerator.cpp
m src/game/IdleMovementGenerator.h
m src/game/MotionMaster.cpp
m src/game/Object.cpp
m src/game/PetAI.cpp
m src/game/PetHandler.cpp
m src/game/PointMovementGenerator.cpp
m src/game/PointMovementGenerator.h
m src/game/RandomMovementGenerator.cpp
m src/game/RandomMovementGenerator.h
m src/game/Spell.cpp
m src/game/SpellEffects.cpp
m src/game/TargetedMovementGenerator.cpp
m src/game/TargetedMovementGenerator.h
m src/game/Unit.cpp
m src/game/Unit.h
m src/game/WaypointMovementGenerator.cpp
m src/game/WaypointMovementGenerator.h
m src/shared/revision_nr.h

[9208] Big cleanup in UNIT_STAT_* use

* Re-number enums by function groups and use where possible new defined masks in code instead raw enum |-lists.
* Avoid use movement generator generic state markers like UNIT_STAT_CONFUSED for mark movement stoped.
Add special shadow UNIT_STAT_CONFUSED_MOVE/etc states for like use.
UNIT_STAT_CONFUSED in like case will be safe expect use for normal checks confused state presence
And UNIT_STAT_CONFUSED_MOVE for check real move in this state</pre>



Дальше... (http://github.com/mangos/mangos/commit/0628f2dc50f081b186704dd2a50e4918521ae42a)