|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WaypointMovementGenerator.h>
Private Attributes | |
| float | _endGridX |
| float | _endGridY |
| X coord of last node location. | |
| uint32 | _endMapId |
| Y coord of last node location. | |
| uint32 | _preloadTargetNode |
| map Id of last node location | |
Additional Inherited Members | |
| Protected Attributes inherited from PathMovementBase< T, P > | |
| uint32 | i_currentNode |
| P | i_path |
FlightPathMovementGenerator generates movement of the player for the paths and hence generates ground and activities for the player.
Definition at line 98 of file WaypointMovementGenerator.h.
|
inlineexplicit |
Definition at line 102 of file WaypointMovementGenerator.h.
References _endGridX, _endGridY, _endMapId, _preloadTargetNode, PathMovementBase< T, P >::i_currentNode, and PathMovementBase< T, P >::i_path.
| void FlightPathMovementGenerator::DoEventIfAny | ( | Player * | player, |
| TaxiPathNodeEntry const & | node, | ||
| bool | departure ) |
Definition at line 310 of file WaypointMovementGenerator.cpp.
References TaxiPathNodeEntry::arrivalEventID, TaxiPathNodeEntry::departureEventID, WorldObject::GetMap(), WorldObject::GetName(), TaxiPathNodeEntry::index, TaxiPathNodeEntry::path, Map::ScriptsStart(), sEventScripts, and SF_LOG_DEBUG.
Referenced by DoUpdate().
| void FlightPathMovementGenerator::DoFinalize | ( | Player * | player | ) |
Definition at line 229 of file WaypointMovementGenerator.cpp.
References Unit::ClearUnitState(), Unit::Dismount(), PlayerTaxi::empty(), Unit::getHostileRefManager(), Player::m_taxi, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_TAXI_BENCHMARK, Object::RemoveFlag(), HostileRefManager::setOnlineOfflineState(), Unit::StopMoving(), UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_TAXI_FLIGHT, and UNIT_STATE_IN_FLIGHT.
| void FlightPathMovementGenerator::DoInitialize | ( | Player * | player | ) |
Definition at line 223 of file WaypointMovementGenerator.cpp.
References InitEndGridInfo(), and MovementGeneratorMedium< Player, FlightPathMovementGenerator >::Reset().
| void FlightPathMovementGenerator::DoReset | ( | Player * | player | ) |
Definition at line 251 of file WaypointMovementGenerator.cpp.
References Unit::AddUnitState(), PathMovementBase< T, P >::GetCurrentNode(), Unit::getHostileRefManager(), GetPathAtMapEnd(), PathMovementBase< T, P >::i_path, Movement::MoveSplineInit::Launch(), Movement::MoveSplineInit::Path(), PLAYER_FLIGHT_SPEED, Movement::MoveSplineInit::SetFirstPointId(), Object::SetFlag(), Movement::MoveSplineInit::SetFly(), HostileRefManager::setOnlineOfflineState(), Movement::MoveSplineInit::SetSmooth(), Movement::MoveSplineInit::SetUncompressed(), Movement::MoveSplineInit::SetVelocity(), Movement::MoveSplineInit::SetWalk(), UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_TAXI_FLIGHT, and UNIT_STATE_IN_FLIGHT.
Definition at line 273 of file WaypointMovementGenerator.cpp.
References _preloadTargetNode, DoEventIfAny(), PathMovementBase< T, P >::i_currentNode, PathMovementBase< T, P >::i_path, Unit::movespline, and PreloadEndGrid().
|
inlinevirtual |
Implements MovementGenerator.
Definition at line 112 of file WaypointMovementGenerator.h.
References FLIGHT_MOTION_TYPE.
|
inline |
Definition at line 114 of file WaypointMovementGenerator.h.
References PathMovementBase< T, P >::i_path.
Referenced by WorldSession::HandleMoveSplineDoneOpcode().
| uint32 FlightPathMovementGenerator::GetPathAtMapEnd | ( | ) | const |
Definition at line 208 of file WaypointMovementGenerator.cpp.
References PathMovementBase< T, P >::i_currentNode, and PathMovementBase< T, P >::i_path.
Referenced by DoReset().
| bool FlightPathMovementGenerator::GetResetPos | ( | Player * | , |
| float & | x, | ||
| float & | y, | ||
| float & | z ) |
Definition at line 319 of file WaypointMovementGenerator.cpp.
References PathMovementBase< T, P >::i_currentNode, TaxiPathNodeEntry::x, TaxiPathNodeEntry::y, and TaxiPathNodeEntry::z.
|
inline |
Definition at line 116 of file WaypointMovementGenerator.h.
References PathMovementBase< T, P >::i_currentNode, and PathMovementBase< T, P >::i_path.
| void FlightPathMovementGenerator::InitEndGridInfo | ( | ) |
Storage to preload flightmaster grid at end of flight. For multi-stop flights, this will be reinitialized for each flightmaster at the end of each spline (or stop) in the flight.
Number of nodes in path.
MapId of last node
Definition at line 326 of file WaypointMovementGenerator.cpp.
References _endGridX, _endGridY, _endMapId, and _preloadTargetNode.
Referenced by DoInitialize().
| void FlightPathMovementGenerator::PreloadEndGrid | ( | ) |
Definition at line 337 of file WaypointMovementGenerator.cpp.
References _endGridX, _endGridY, _endMapId, _preloadTargetNode, PathMovementBase< T, P >::i_path, Map::LoadGrid(), SF_LOG_INFO, and sMapMgr.
Referenced by DoUpdate().
| void FlightPathMovementGenerator::SetCurrentNodeAfterTeleport | ( | ) |
Definition at line 294 of file WaypointMovementGenerator.cpp.
References PathMovementBase< T, P >::i_currentNode, and PathMovementBase< T, P >::i_path.
Referenced by WorldSession::HandleMoveSplineDoneOpcode().
|
inline |
Definition at line 118 of file WaypointMovementGenerator.h.
References PathMovementBase< T, P >::i_currentNode.
Referenced by WorldSession::HandleMoveSplineDoneOpcode().
|
private |
Definition at line 127 of file WaypointMovementGenerator.h.
Referenced by FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().
|
private |
X coord of last node location.
Definition at line 128 of file WaypointMovementGenerator.h.
Referenced by FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().
|
private |
Y coord of last node location.
Definition at line 129 of file WaypointMovementGenerator.h.
Referenced by FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().
|
private |
map Id of last node location
Definition at line 130 of file WaypointMovementGenerator.h.
Referenced by DoUpdate(), FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().