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
681: i_obj(obj), i_range(range) {}
WorldObject const & i_obj
Definition: GridNotifiers.h:692
float i_range
Definition: GridNotifiers.h:693

◆ NearestGameObjectFishingHole() [2/2]

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

Member Function Documentation

◆ operator()()

bool Acore::NearestGameObjectFishingHole::operator() ( GameObject go)
inline
683 {
685 {
687 return true;
688 }
689 return false;
690 }
@ GAMEOBJECT_TYPE_FISHINGHOLE
Definition: SharedDefines.h:1557
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:138
bool isSpawned() const
Definition: GameObject.h:191
uint32 type
Definition: GameObjectData.h:34
uint32 radius
Definition: GameObjectData.h:197
struct GameObjectTemplate::@215::@236 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()().