Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Skyfire::PetTransport Namespace Reference

Classes

struct  PassengerOffset

Functions

bool AttachHunterPetToOwnerTransport (Player *owner, Pet *pet, Transport *transport)
bool BoardOwnerHunterPet (Player *owner, Transport *transport)
PassengerOffset CalculateFollowerPosition (float ownerX, float ownerY, float ownerZ, float ownerO, float ownerObjectSize, float petObjectSize, float followDistance, float followAngle)
bool IsPassengerOffsetWithinLimit (float x, float y, float z, float limit)
void RemoveOwnerHunterPet (Player *owner, Transport *transport)
bool ShouldApplySplineGroundClamp (bool hasTransport, bool isCreature, bool isFalling)
bool ShouldAttachHunterPetToOwnerTransport (bool ownerHasTransport, bool petIsHunterPet, bool petIsControlled, bool petIsAlive, bool ownerMatches, bool sameMap)
bool ShouldClearMountedPetStunForTransport (bool ownerMounted, bool ownerHasTransport, bool petStunned)
bool ShouldMirrorOwnerPet (bool isHunterPet, bool isControlled, bool isAlive, bool ownerMatches)
bool ShouldMoveTransportPetToFollowOffset (float currentX, float currentY, float currentZ, float desiredX, float desiredY, float desiredZ, float tolerance)
bool ShouldPlacePetNearOwnerOnTransportExit (bool ownerStillOnTransport)
bool ShouldReattachPetDuringOwnerTransportUpdate (bool ownerHasTransport, bool petIsHunterPet, bool petIsControlled, bool petIsAlive, bool ownerMatches, bool petOnOwnerTransport)
bool ShouldRefreshPetTransportOffset (bool petAlreadyOnOwnerTransport, bool petPassengerOffsetInvalid)
bool ShouldRemovePetForOwnerRange (bool petExists, bool petPossessed, bool petOnOwnerTransport, bool isWithinVisibilityRange, bool transportExitGraceActive)
bool ShouldResumePetFollowOnTransport (bool ownerHasTransport, bool petOnOwnerTransport, bool petInWorld)
bool ShouldSendTransportEnterSpline (bool petInWorld, bool petOnOwnerTransport, bool offsetRefreshed)
bool ShouldTemporarilyUnsummonMountedPet (bool inBattleground, bool hasFlyingMountSpeedAura)
bool ShouldTryBoardPetBeforeOwnerRangeRemoval (bool ownerHasTransport, bool petExists, bool petOnOwnerTransport)
bool ShouldUseTransportLocalPetFollow (bool followerIsPet, bool targetIsOwner, bool followerHasTransport, bool targetOnSameTransport, bool hasFollowOffset)

Function Documentation

◆ AttachHunterPetToOwnerTransport()

◆ BoardOwnerHunterPet()

bool Skyfire::PetTransport::BoardOwnerHunterPet ( Player * owner,
Transport * transport )

◆ CalculateFollowerPosition()

PassengerOffset Skyfire::PetTransport::CalculateFollowerPosition ( float ownerX,
float ownerY,
float ownerZ,
float ownerO,
float ownerObjectSize,
float petObjectSize,
float followDistance,
float followAngle )

◆ IsPassengerOffsetWithinLimit()

bool Skyfire::PetTransport::IsPassengerOffsetWithinLimit ( float x,
float y,
float z,
float limit )

Definition at line 26 of file PetTransportSupport.cpp.

Referenced by AttachHunterPetToOwnerTransport().

◆ RemoveOwnerHunterPet()

◆ ShouldApplySplineGroundClamp()

bool Skyfire::PetTransport::ShouldApplySplineGroundClamp ( bool hasTransport,
bool isCreature,
bool isFalling )

Definition at line 73 of file PetTransportSupport.cpp.

Referenced by Unit::UpdateSplinePosition().

◆ ShouldAttachHunterPetToOwnerTransport()

bool Skyfire::PetTransport::ShouldAttachHunterPetToOwnerTransport ( bool ownerHasTransport,
bool petIsHunterPet,
bool petIsControlled,
bool petIsAlive,
bool ownerMatches,
bool sameMap )

Definition at line 94 of file PetTransportSupport.cpp.

References ShouldMirrorOwnerPet().

Referenced by AttachHunterPetToOwnerTransport().

◆ ShouldClearMountedPetStunForTransport()

bool Skyfire::PetTransport::ShouldClearMountedPetStunForTransport ( bool ownerMounted,
bool ownerHasTransport,
bool petStunned )

Definition at line 63 of file PetTransportSupport.cpp.

Referenced by Unit::Mount().

◆ ShouldMirrorOwnerPet()

bool Skyfire::PetTransport::ShouldMirrorOwnerPet ( bool isHunterPet,
bool isControlled,
bool isAlive,
bool ownerMatches )

◆ ShouldMoveTransportPetToFollowOffset()

bool Skyfire::PetTransport::ShouldMoveTransportPetToFollowOffset ( float currentX,
float currentY,
float currentZ,
float desiredX,
float desiredY,
float desiredZ,
float tolerance )

◆ ShouldPlacePetNearOwnerOnTransportExit()

bool Skyfire::PetTransport::ShouldPlacePetNearOwnerOnTransportExit ( bool ownerStillOnTransport)

Definition at line 107 of file PetTransportSupport.cpp.

Referenced by RemoveOwnerHunterPet().

◆ ShouldReattachPetDuringOwnerTransportUpdate()

bool Skyfire::PetTransport::ShouldReattachPetDuringOwnerTransportUpdate ( bool ownerHasTransport,
bool petIsHunterPet,
bool petIsControlled,
bool petIsAlive,
bool ownerMatches,
bool petOnOwnerTransport )

Definition at line 100 of file PetTransportSupport.cpp.

References ShouldMirrorOwnerPet().

Referenced by Pet::Update().

◆ ShouldRefreshPetTransportOffset()

bool Skyfire::PetTransport::ShouldRefreshPetTransportOffset ( bool petAlreadyOnOwnerTransport,
bool petPassengerOffsetInvalid )

Definition at line 33 of file PetTransportSupport.cpp.

Referenced by AttachHunterPetToOwnerTransport().

◆ ShouldRemovePetForOwnerRange()

bool Skyfire::PetTransport::ShouldRemovePetForOwnerRange ( bool petExists,
bool petPossessed,
bool petOnOwnerTransport,
bool isWithinVisibilityRange,
bool transportExitGraceActive )

Definition at line 83 of file PetTransportSupport.cpp.

Referenced by Pet::Update(), and Player::Update().

◆ ShouldResumePetFollowOnTransport()

bool Skyfire::PetTransport::ShouldResumePetFollowOnTransport ( bool ownerHasTransport,
bool petOnOwnerTransport,
bool petInWorld )

Definition at line 58 of file PetTransportSupport.cpp.

◆ ShouldSendTransportEnterSpline()

bool Skyfire::PetTransport::ShouldSendTransportEnterSpline ( bool petInWorld,
bool petOnOwnerTransport,
bool offsetRefreshed )

Definition at line 68 of file PetTransportSupport.cpp.

Referenced by AttachHunterPetToOwnerTransport().

◆ ShouldTemporarilyUnsummonMountedPet()

bool Skyfire::PetTransport::ShouldTemporarilyUnsummonMountedPet ( bool inBattleground,
bool hasFlyingMountSpeedAura )

Definition at line 89 of file PetTransportSupport.cpp.

Referenced by Player::IsPetNeedBeTemporaryUnsummoned(), and Unit::Mount().

◆ ShouldTryBoardPetBeforeOwnerRangeRemoval()

bool Skyfire::PetTransport::ShouldTryBoardPetBeforeOwnerRangeRemoval ( bool ownerHasTransport,
bool petExists,
bool petOnOwnerTransport )

Definition at line 78 of file PetTransportSupport.cpp.

Referenced by Player::Update().

◆ ShouldUseTransportLocalPetFollow()

bool Skyfire::PetTransport::ShouldUseTransportLocalPetFollow ( bool followerIsPet,
bool targetIsOwner,
bool followerHasTransport,
bool targetOnSameTransport,
bool hasFollowOffset )