TrinityCore
|
#include <Vehicle.h>
Protected Member Functions | |
VehicleJoinEvent (Vehicle *v, Unit *u) | |
bool | Execute (uint64, uint32) override |
Actually adds the passenger @Passenger to vehicle @Target. More... | |
void | Abort (uint64) override |
Aborts the event. Implies that unit @Passenger will not be boarding vehicle @Target after all. More... | |
Protected Attributes | |
Vehicle * | Target |
Unit * | Passenger |
SeatMap::iterator | Seat |
Friends | |
class | Vehicle |
Additional Inherited Members | |
Public Member Functions inherited from BasicEvent | |
BasicEvent () | |
virtual | ~BasicEvent () |
virtual bool | Execute (uint64, uint32) |
virtual bool | IsDeletable () const |
virtual void | Abort (uint64) |
void | ScheduleAbort () |
|
overrideprotectedvirtual |
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
Remove the pending event when Abort was called on the event directly
@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::AddVehiclePassenger, and we should remove the aura manually.
Reimplemented from BasicEvent.
Definition at line 928 of file Vehicle.cpp.
Actually adds the passenger @Passenger to vehicle @Target.
parameter1 | Unused |
parameter2 | Unused. |
Reimplemented from BasicEvent.
Definition at line 791 of file Vehicle.cpp.