AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VehicleSeat Struct Reference

#include "VehicleDefines.h"

Public Member Functions

 VehicleSeat (VehicleSeatEntry const *seatInfo, VehicleSeatAddon const *seatAddon)
 
bool IsEmpty () const
 

Public Attributes

VehicleSeatEntry const * SeatInfo
 
VehicleSeatAddon const * SeatAddon
 
PassengerInfo Passenger
 

Detailed Description

Constructor & Destructor Documentation

◆ VehicleSeat()

VehicleSeat::VehicleSeat ( VehicleSeatEntry const *  seatInfo,
VehicleSeatAddon const *  seatAddon 
)
inlineexplicit
102 : SeatInfo(seatInfo), SeatAddon(seatAddon)
103 {
105 }
void Reset()
Definition: VehicleDefines.h:78
VehicleSeatAddon const * SeatAddon
Definition: VehicleDefines.h:110
PassengerInfo Passenger
Definition: VehicleDefines.h:111
VehicleSeatEntry const * SeatInfo
Definition: VehicleDefines.h:109

References Passenger, and PassengerInfo::Reset().

Member Function Documentation

◆ IsEmpty()

bool VehicleSeat::IsEmpty ( ) const
inline
107{ return !Passenger.Guid; }
ObjectGuid Guid
Definition: VehicleDefines.h:75

References PassengerInfo::Guid, and Passenger.

Member Data Documentation

◆ Passenger

PassengerInfo VehicleSeat::Passenger

Referenced by IsEmpty(), and VehicleSeat().

◆ SeatAddon

VehicleSeatAddon const* VehicleSeat::SeatAddon

◆ SeatInfo

VehicleSeatEntry const* VehicleSeat::SeatInfo