AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::NearestGameObjectFishingHole Class Reference

#include "GridNotifiers.h"

Public Member Functions

 NearestGameObjectFishingHole (WorldObject const &obj, float range)
 
bool operator() (GameObject *go)
 

Private Member Functions

 NearestGameObjectFishingHole (NearestGameObjectFishingHole const &)
 

Private Attributes

WorldObject const & i_obj
 
float i_range
 

Detailed Description

Constructor & Destructor Documentation

◆ NearestGameObjectFishingHole() [1/2]

Acore::NearestGameObjectFishingHole::NearestGameObjectFishingHole ( WorldObject const &  obj,
float  range 
)
inline
684: i_obj(obj), i_range(range) {}
WorldObject const & i_obj
Definition: GridNotifiers.h:695
float i_range
Definition: GridNotifiers.h:696

◆ NearestGameObjectFishingHole() [2/2]

Acore::NearestGameObjectFishingHole::NearestGameObjectFishingHole ( NearestGameObjectFishingHole const &  )
private

Member Function Documentation

◆ operator()()

bool Acore::NearestGameObjectFishingHole::operator() ( GameObject go)
inline
686 {
688 {
690 return true;
691 }
692 return false;
693 }
@ GAMEOBJECT_TYPE_FISHINGHOLE
Definition: SharedDefines.h:1585
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:137
bool isSpawned() const
Definition: GameObject.h:190
uint32 type
Definition: GameObjectData.h:34
uint32 radius
Definition: GameObjectData.h:197
struct GameObjectTemplate::@227::@248 fishinghole
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true, bool useBoundingRadius=true) const
Definition: Object.cpp:1321
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245

References GameObjectTemplate::fishinghole, GAMEOBJECT_TYPE_FISHINGHOLE, WorldObject::GetDistance(), GameObject::GetGOInfo(), i_obj, i_range, GameObject::isSpawned(), WorldObject::IsWithinDistInMap(), GameObjectTemplate::radius, and GameObjectTemplate::type.

Member Data Documentation

◆ i_obj

WorldObject const& Acore::NearestGameObjectFishingHole::i_obj
private

Referenced by operator()().

◆ i_range

float Acore::NearestGameObjectFishingHole::i_range
private

Referenced by operator()().