105 o -= trans->GetOrientation();
107 trans->CalculatePassengerPosition(x, y, z, &o);
111 transportPath =
false;
136 trans->CalculatePassengerPosition(formationDest.x, formationDest.y, formationDest.z, &formationDest.
orientation);
201 x = node->
x; y = node->
y; z = node->
z;
216 if ((*
i_path)[i].mapid != curMapId)
249#define PLAYER_FLIGHT_SPEED 32.0f
262 init.
Path().push_back(vertice);
278 bool departureEvent =
true;
287 departureEvent = !departureEvent;
299 uint32 map0 = (*i_path)[0].mapid;
300 for (
size_t i = 1; i <
i_path->size(); ++i)
302 if ((*
i_path)[i].mapid != map0)
314 SF_LOG_DEBUG(
"maps.script",
"Taxi %s event %u of node %u of path %u for player %s", departure ?
"departure" :
"arrival", eventid, node.
index, node.
path, player->
GetName().c_str());
322 x = node.
x; y = node.
y; z = node.
z;
330 uint32 nodeCount = (*i_path).size();
331 _endMapId = (*i_path)[nodeCount - 1].mapid;
349 SF_LOG_INFO(
"misc",
"Unable to determine map to preload flightmaster grid");
#define SF_LOG_DEBUG(filterType__,...)
#define SF_LOG_ERROR(filterType__,...)
#define SF_LOG_INFO(filterType__,...)
ScriptMapMap sEventScripts
ScriptMapMap sWaypointScripts
@ PLAYER_FLAGS_TAXI_BENCHMARK
@ UNIT_STATE_ROAMING_MOVE
@ PLAYER_FIELD_PLAYER_FLAGS
#define PLAYER_FLIGHT_SPEED
#define STOP_TIME_FOR_PLAYER
virtual void MovementInform(uint32, uint32)
void LeaderMoveTo(float x, float y, float z)
Creature * getLeader() const
void SetHomePosition(float x, float y, float z, float o)
uint32 GetDBTableGUIDLow() const
uint32 GetWaypointPath() const
void UpdateWaypointID(uint32 wpID)
CreatureGroup * GetFormation()
void SetTransportHomePosition(float x, float y, float z, float o)
uint32 GetPathAtMapEnd() const
float _endGridY
X coord of last node location.
bool DoUpdate(Player *, uint32)
uint32 _preloadTargetNode
map Id of last node location
void DoInitialize(Player *)
void SetCurrentNodeAfterTeleport()
uint32 _endMapId
Y coord of last node location.
void DoEventIfAny(Player *player, TaxiPathNodeEntry const &node, bool departure)
bool GetResetPos(Player *, float &x, float &y, float &z)
void DoFinalize(Player *)
void setOnlineOfflineState(bool isOnline)
void ScriptsStart(std::map< uint32, std::multimap< uint32, ScriptInfo > > const &scripts, uint32 id, Object *source, Object *target)
Put scripts in the execution queue.
void LoadGrid(float x, float y)
void DisableTransportPathTransformations()
void SetWalk(bool enable)
void SetFirstPointId(int32 pointId)
void SetVelocity(float velocity)
void SetFacing(float angle)
void MoveTo(const Vector3 &destination, bool generatePath=true, bool forceDestination=false)
uint32 GetGUIDLow() const
void SetFlag(uint16 index, uint32 newFlag)
void RemoveFlag(uint16 index, uint32 oldFlag)
uint32 GetCurrentNode() const
void ClearUnitState(uint32 f)
MotionMaster * GetMotionMaster()
void StopMoving()
-------—End of Pet responses methods-------—
void AddUnitState(uint32 f)
TransportBase * GetDirectTransport() const
Returns the transport this unit is on directly (if on vehicle and transport, return vehicle).
bool SetWalk(bool enable)
HostileRefManager & getHostileRefManager()
bool HasUnitState(const uint32 f) const
std::unique_ptr< Movement::MoveSpline > movespline
void StartMoveNow(Creature *creature)
void MovementInform(Creature *)
void OnArrived(Creature *)
void LoadPath(Creature *)
WaypointMovementGenerator(uint32 _path_id=0, bool _repeating=true)
bool StartMove(Creature *)
std::string const & GetName() const
Transport * GetTransport() const
float GetOrientation() const