TrinityCore
Loading...
Searching...
No Matches
TransportBase Class Referenceabstract

#include <VehicleDefines.h>

+ Inheritance diagram for TransportBase:

Public Member Functions

virtual ObjectGuid GetTransportGUID () const =0
 
virtual Position GetPositionWithOffset (Position const &offset) const =0
 This method transforms supplied transport offsets into global coordinates.
 
virtual Position GetPositionOffsetTo (Position const &endPos) const =0
 This method transforms supplied global coordinates into local offsets.
 
virtual float GetTransportOrientation () const =0
 
virtual void AddPassenger (WorldObject *passenger, Position const &offset)=0
 
virtual TransportBaseRemovePassenger (WorldObject *passenger)=0
 
void UpdatePassengerPosition (Map *map, WorldObject *passenger, Position const &position, bool setHomePosition)
 
virtual int32 GetMapIdForSpawning () const =0
 

Protected Member Functions

 TransportBase ()
 
virtual ~TransportBase ()
 

Detailed Description

Definition at line 168 of file VehicleDefines.h.

Constructor & Destructor Documentation

◆ TransportBase()

TransportBase::TransportBase ( )
inlineprotected

Definition at line 171 of file VehicleDefines.h.

◆ ~TransportBase()

virtual TransportBase::~TransportBase ( )
inlineprotectedvirtual

Definition at line 172 of file VehicleDefines.h.

Member Function Documentation

◆ AddPassenger()

virtual void TransportBase::AddPassenger ( WorldObject passenger,
Position const &  offset 
)
pure virtual

Implemented in Vehicle, GameObjectType::Transport, and Transport.

+ Here is the caller graph for this function:

◆ GetMapIdForSpawning()

virtual int32 TransportBase::GetMapIdForSpawning ( ) const
pure virtual

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ GetPositionOffsetTo()

virtual Position TransportBase::GetPositionOffsetTo ( Position const &  endPos) const
pure virtual

This method transforms supplied global coordinates into local offsets.

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ GetPositionWithOffset()

virtual Position TransportBase::GetPositionWithOffset ( Position const &  offset) const
pure virtual

This method transforms supplied transport offsets into global coordinates.

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ GetTransportGUID()

virtual ObjectGuid TransportBase::GetTransportGUID ( ) const
pure virtual

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ GetTransportOrientation()

virtual float TransportBase::GetTransportOrientation ( ) const
pure virtual

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ RemovePassenger()

virtual TransportBase * TransportBase::RemovePassenger ( WorldObject passenger)
pure virtual

Implemented in GameObjectType::Transport, Transport, and Vehicle.

+ Here is the caller graph for this function:

◆ UpdatePassengerPosition()

void TransportBase::UpdatePassengerPosition ( Map map,
WorldObject passenger,
Position const &  position,
bool  setHomePosition 
)

Definition at line 36 of file Transport.cpp.

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

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