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
@ CREATURE_TYPE_NON_COMBAT_PET
Definition: SharedDefines.h:2639
LineOfSightChecks
Definition: Map.h:189
@ LINEOFSIGHT_ALL_CHECKS
Definition: Map.h:196
bool IsGameObject() const
Definition: Object.h:212
bool IsCreature() const
Definition: Object.h:204
Creature * ToCreature()
Definition: Object.h:205
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:1358
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1332
float GetCollisionHeight() const override
Return collision height sent to client.
Definition: Unit.cpp:21106
bool IsAlive() const
Definition: Unit.h:1654
uint32 GetCreatureType() const
Definition: Unit.cpp:15182
bool isTargetableForAttack(bool checkFakeDeath=true, Unit const *byWho=nullptr) const
Definition: Unit.cpp:13854
bool IsTotem() const
Definition: Unit.h:756
bool IsValidAttackTarget(Unit const *target, SpellInfo const *bySpell=nullptr) const
Definition: Unit.cpp:13871