910 {
912 {
913 return false;
914 }
915
917 {
918 return false;
919 }
920
922 {
923 return false;
924 }
925
927 {
928 return false;
929 }
930
934 {
935 losChecks &= ~LINEOFSIGHT_CHECK_GOBJECT_M2;
937 }
938
941 {
942 return false;
943 }
944
945 return true;
946 }
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Optional.h:24
std::uint32_t uint32
Definition: Define.h:107
LineOfSightChecks
Definition: Map.h:191
@ LINEOFSIGHT_ALL_CHECKS
Definition: Map.h:198
@ CREATURE_TYPE_NON_COMBAT_PET
Definition: SharedDefines.h:2639
bool IsGameObject() const
Definition: Object.h:209
bool IsCreature() const
Definition: Object.h:201
Creature * ToCreature()
Definition: Object.h:202
bool IsWithinLOSInMap(WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const
Definition: Object.cpp:1347
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1321
float GetCollisionHeight() const override
Return collision height sent to client.
Definition: Unit.cpp:21062
bool IsAlive() const
Definition: Unit.h:1204
uint32 GetCreatureType() const
Definition: Unit.cpp:15137
bool isTargetableForAttack(bool checkFakeDeath=true, Unit const *byWho=nullptr) const
Definition: Unit.cpp:13811
bool IsTotem() const
Definition: Unit.h:712
bool IsValidAttackTarget(Unit const *target, SpellInfo const *bySpell=nullptr) const
Definition: Unit.cpp:13828