Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
VehicleJoinEvent Class Reference

#include <Vehicle.h>

Inheritance diagram for VehicleJoinEvent:
Collaboration diagram for VehicleJoinEvent:

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

UnitPassenger
SeatMap::iterator Seat
VehicleTarget

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

Detailed Description

Definition at line 109 of file Vehicle.h.

Constructor & Destructor Documentation

◆ VehicleJoinEvent()

VehicleJoinEvent::VehicleJoinEvent ( Vehicle * v,
Unit * u )
inlineprotected

Definition at line 113 of file Vehicle.h.

References Passenger, Seat, Target, and Vehicle.

◆ ~VehicleJoinEvent()

VehicleJoinEvent::~VehicleJoinEvent ( )
protected

Definition at line 743 of file Vehicle.cpp.

References Target.

Member Function Documentation

◆ Abort()

void VehicleJoinEvent::Abort ( uint64 )
protectedvirtual

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

@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.

◆ Execute()

◆ Vehicle

friend class Vehicle
friend

Definition at line 111 of file Vehicle.h.

References Vehicle.

Referenced by Vehicle, and VehicleJoinEvent().

Member Data Documentation

◆ Passenger

Unit* VehicleJoinEvent::Passenger
protected

Definition at line 119 of file Vehicle.h.

Referenced by Abort(), Execute(), and VehicleJoinEvent().

◆ Seat

SeatMap::iterator VehicleJoinEvent::Seat
protected

Definition at line 120 of file Vehicle.h.

Referenced by Abort(), Vehicle::AddPassenger(), Execute(), and VehicleJoinEvent().

◆ Target

Vehicle* VehicleJoinEvent::Target
protected

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