19 #ifndef __TRINITY_VEHICLEDEFINES_H
20 #define __TRINITY_VEHICLEDEFINES_H
86 IsUnselectable =
false;
134 float inx =
x, iny =
y, inz =
z;
138 x = transX + inx * std::cos(transO) - iny * std::sin(transO);
139 y = transY + iny * std::cos(transO) + inx * std::sin(transO);
151 float inx =
x, iny =
y;
152 y = (iny - inx * std::tan(transO)) / (std::cos(transO) + std::sin(transO) * std::tan(transO));
153 x = (inx + iny * std::tan(transO)) / (std::cos(transO) + std::sin(transO) * std::tan(transO));
Definition: DBCStructure.h:1305
Definition: VehicleDefines.h:66
std::vector< VehicleAccessory > VehicleAccessoryList
Definition: VehicleDefines.h:114
Definition: VehicleDefines.h:48
VehicleSeat(VehicleSeatEntry const *seatInfo)
Definition: VehicleDefines.h:92
int8_t int8
Definition: Define.h:148
Definition: VehicleDefines.h:37
VehicleSpells
Definition: VehicleDefines.h:72
uint32 SummonTime
Definition: VehicleDefines.h:109
Definition: VehicleDefines.h:30
Definition: VehicleDefines.h:103
Definition: VehicleDefines.h:57
Definition: VehicleDefines.h:42
Definition: VehicleDefines.h:34
std::map< ObjectGuid::LowType, VehicleAccessoryList > VehicleAccessoryContainer
Definition: VehicleDefines.h:115
Definition: VehicleDefines.h:50
arena_t NULL
Definition: jemalloc_internal.h:624
virtual void CalculatePassengerOffset(float &x, float &y, float &z, float *o=NULL) const =0
This method transforms supplied global coordinates into local offsets.
Definition: VehicleDefines.h:78
Definition: VehicleDefines.h:74
uint32 AccessoryEntry
Definition: VehicleDefines.h:107
static float NormalizeOrientation(float o)
Definition: Position.h:211
Definition: VehicleDefines.h:47
Definition: VehicleDefines.h:119
Definition: VehicleDefines.h:38
Definition: VehicleDefines.h:41
TransportBase()
Definition: VehicleDefines.h:122
Definition: VehicleDefines.h:32
virtual void CalculatePassengerPosition(float &x, float &y, float &z, float *o=NULL) const =0
This method transforms supplied transport offsets into global coordinates.
Definition: VehicleDefines.h:31
int8 SeatId
Definition: VehicleDefines.h:110
Definition: VehicleDefines.h:49
Definition: VehicleDefines.h:68
Definition: VehicleDefines.h:64
Definition: VehicleDefines.h:55
virtual ~TransportBase()
Definition: VehicleDefines.h:123
std::map< int8, VehicleSeat > SeatMap
Definition: VehicleDefines.h:117
Definition: VehicleDefines.h:67
Definition: VehicleDefines.h:53
Definition: VehicleDefines.h:65
Definition: VehicleDefines.h:33
VehicleSeatEntry const * SeatInfo
Definition: VehicleDefines.h:99
Definition: VehicleDefines.h:35
G3D::int16 z
Definition: Vector3int16.h:46
std::map< uint32, VehicleAccessoryList > VehicleAccessoryTemplateContainer
Definition: VehicleDefines.h:116
bool IsMinion
Definition: VehicleDefines.h:108
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
uint8 SummonedType
Definition: VehicleDefines.h:111
Definition: VehicleDefines.h:36
Definition: VehicleDefines.h:43
Definition: VehicleDefines.h:54
PassengerInfo Passenger
Definition: VehicleDefines.h:100
Definition: VehicleDefines.h:39
void Clear()
Definition: ObjectGuid.h:215
bool IsUnselectable
Definition: VehicleDefines.h:81
Definition: VehicleDefines.h:40
void Reset()
Definition: VehicleDefines.h:83
Definition: VehicleDefines.h:75
VehicleFlags
Definition: VehicleDefines.h:60
ObjectGuid Guid
Definition: VehicleDefines.h:80
Definition: VehicleDefines.h:63
Definition: VehicleDefines.h:45
uint8_t uint8
Definition: Define.h:152
Definition: VehicleDefines.h:46
Definition: VehicleDefines.h:51
Definition: VehicleDefines.h:90
Definition: ObjectGuid.h:189
VehicleAccessory(uint32 entry, int8 seatId, bool isMinion, uint8 summonType, uint32 summonTime)
Definition: VehicleDefines.h:105
G3D::int16 x
Definition: Vector2int16.h:37
static void CalculatePassengerPosition(float &x, float &y, float &z, float *o, float transX, float transY, float transZ, float transO)
Definition: VehicleDefines.h:132
Definition: VehicleDefines.h:44
Definition: VehicleDefines.h:52
bool IsEmpty() const
Definition: VehicleDefines.h:97
Definition: VehicleDefines.h:56
bool IsEmpty() const
Definition: ObjectGuid.h:242
PowerType
Definition: VehicleDefines.h:28
Definition: VehicleDefines.h:62
Definition: VehicleDefines.h:69
static void CalculatePassengerOffset(float &x, float &y, float &z, float *o, float transX, float transY, float transZ, float transO)
Definition: VehicleDefines.h:143