|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Vehicle.h>
Protected Member Functions | |
| void | Abort (uint64) |
| Aborts the event. Implies that unit @Passenger will not be boarding vehicle @Target after all. | |
| bool | Execute (uint64, uint32) |
| Actually adds the passenger @Passenger to vehicle @Target. | |
| VehicleJoinEvent (Vehicle *v, Unit *u) | |
| ~VehicleJoinEvent () | |
Protected Attributes | |
| Unit * | Passenger |
| SeatMap::iterator | Seat |
| Vehicle * | Target |
Friends | |
| class | Vehicle |
Additional Inherited Members | |
| Public Member Functions inherited from BasicEvent | |
| BasicEvent () | |
| virtual bool | IsDeletable () const |
| virtual | ~BasicEvent () |
| Public Attributes inherited from BasicEvent | |
| uint64 | m_addTime |
| uint64 | m_execTime |
| bool | to_Abort |
|
protected |
Definition at line 743 of file Vehicle.cpp.
References Target.
|
protectedvirtual |
Aborts the event. Implies that unit @Passenger will not be boarding vehicle @Target after all.
| parameter1 | Unused |
Check if the Vehicle was already uninstalled, in which case all auras were removed already
@SPELL_AURA_CONTROL_VEHICLE auras can be applied even when the passenger is not (yet) on the vehicle. When this code is triggered it means that something went wrong in @Vehicle::AddPassenger, and we should remove the aura manually.
Reimplemented from BasicEvent.
Definition at line 856 of file Vehicle.cpp.
References Passenger, Seat, SF_LOG_DEBUG, SPELL_AURA_CONTROL_VEHICLE, Target, and UNIT_MASK_ACCESSORY.
Actually adds the passenger @Passenger to vehicle @Target.
| parameter1 | Unused |
| parameter2 | Unused. |
Reimplemented from BasicEvent.
Definition at line 764 of file Vehicle.cpp.
References ASSERT, CHARM_TYPE_VEHICLE, Movement::MoveSplineInit::DisableTransportPathTransformations(), Player::GetBattleground(), Movement::MoveSplineInit::Launch(), VehicleSeatEntry::m_attachmentOffsetX, VehicleSeatEntry::m_attachmentOffsetY, VehicleSeatEntry::m_attachmentOffsetZ, Movement::MoveSplineInit::MoveTo(), Passenger, Seat, Player::SendOnCancelExpectedVehicleRideAura(), Movement::MoveSplineInit::SetFacing(), Movement::MoveSplineInit::SetTransportEnter(), SPELL_AURA_CONTROL_VEHICLE, SPELL_AURA_MOUNTED, sScriptMgr, Player::StopCastingBindSight(), Player::StopCastingCharm(), Target, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FLAG_NOT_SELECTABLE, UNIT_MASK_ACCESSORY, UNIT_NPC_FLAG_PLAYER_VEHICLE, UNIT_NPC_FLAG_SPELLCLICK, UNIT_STATE_ROOT, Player::UnsummonPetTemporaryIfAny(), VEHICLE_SEAT_FLAG_CAN_CONTROL, and VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE.
|
friend |
Definition at line 111 of file Vehicle.h.
References Vehicle.
Referenced by Vehicle, and VehicleJoinEvent().
|
protected |
Definition at line 119 of file Vehicle.h.
Referenced by Abort(), Execute(), and VehicleJoinEvent().
|
protected |
Definition at line 120 of file Vehicle.h.
Referenced by Abort(), Vehicle::AddPassenger(), Execute(), and VehicleJoinEvent().
|
protected |
Definition at line 118 of file Vehicle.h.
Referenced by Abort(), Execute(), Vehicle::RemoveAllPassengers(), VehicleJoinEvent(), and ~VehicleJoinEvent().