TrinityCore
Loading...
Searching...
No Matches
VehicleJoinEvent Class Reference
+ Inheritance diagram for VehicleJoinEvent:

Public Member Functions

 VehicleJoinEvent (Vehicle *v, Unit *u)
 
bool Execute (uint64, uint32) override
 Actually adds the passenger @Passenger to vehicle @Target.
 
void Abort (uint64) override
 Aborts the event. Implies that unit @Passenger will not be boarding vehicle @Target after all.
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()
 
virtual ~BasicEvent ()
 
virtual bool IsDeletable () const
 
void ScheduleAbort ()
 

Public Attributes

VehicleTarget
 
UnitPassenger
 
SeatMap::iterator Seat
 

Detailed Description

Definition at line 37 of file Vehicle.cpp.

Constructor & Destructor Documentation

◆ VehicleJoinEvent()

VehicleJoinEvent::VehicleJoinEvent ( Vehicle v,
Unit u 
)
inline

Definition at line 40 of file Vehicle.cpp.

Member Function Documentation

◆ Abort()

void VehicleJoinEvent::Abort ( uint64  )
overridevirtual

Aborts the event. Implies that unit @Passenger will not be boarding vehicle @Target after all.

Author
Machiavelli
Date
17-2-2013
Parameters
parameter1Unused

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 946 of file Vehicle.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Execute()

bool VehicleJoinEvent::Execute ( uint64  ,
uint32   
)
overridevirtual

Actually adds the passenger @Passenger to vehicle @Target.

Author
Machiavelli
Date
17-2-2013
Parameters
parameter1Unused
parameter2Unused.
Returns
true, cannot fail.

Reimplemented from BasicEvent.

Definition at line 813 of file Vehicle.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ Passenger

Unit* VehicleJoinEvent::Passenger

Definition at line 45 of file Vehicle.cpp.

◆ Seat

SeatMap::iterator VehicleJoinEvent::Seat

Definition at line 46 of file Vehicle.cpp.

◆ Target

Vehicle* VehicleJoinEvent::Target

Definition at line 44 of file Vehicle.cpp.


The documentation for this class was generated from the following file: