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

#include <Spell.h>

Inheritance diagram for Skyfire::WorldObjectSpellNearbyTargetCheck:
Collaboration diagram for Skyfire::WorldObjectSpellNearbyTargetCheck:

Public Member Functions

bool operator() (WorldObject *target)
 WorldObjectSpellNearbyTargetCheck (float range, Unit *caster, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionList *condList)
Public Member Functions inherited from Skyfire::WorldObjectSpellTargetCheck
bool operator() (WorldObject *target)
 WorldObjectSpellTargetCheck (Unit *caster, Unit *referer, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionList *condList)
 ~WorldObjectSpellTargetCheck ()

Public Attributes

Position const * _position
float _range
Public Attributes inherited from Skyfire::WorldObjectSpellTargetCheck
Unit_caster
ConditionList_condList
ConditionSourceInfo_condSrcInfo
Unit_referer
SpellInfo const * _spellInfo
SpellTargetCheckTypes _targetSelectionType

Detailed Description

Definition at line 795 of file Spell.h.

Constructor & Destructor Documentation

◆ WorldObjectSpellNearbyTargetCheck()

Skyfire::WorldObjectSpellNearbyTargetCheck::WorldObjectSpellNearbyTargetCheck ( float range,
Unit * caster,
SpellInfo const * spellInfo,
SpellTargetCheckTypes selectionType,
ConditionList * condList )

Member Function Documentation

◆ operator()()

bool Skyfire::WorldObjectSpellNearbyTargetCheck::operator() ( WorldObject * target)

Definition at line 8111 of file Spell.cpp.

References _position, _range, and WorldObject::GetDistance().

Member Data Documentation

◆ _position

Position const* Skyfire::WorldObjectSpellNearbyTargetCheck::_position

Definition at line 798 of file Spell.h.

Referenced by operator()(), and WorldObjectSpellNearbyTargetCheck().

◆ _range

float Skyfire::WorldObjectSpellNearbyTargetCheck::_range

Definition at line 797 of file Spell.h.

Referenced by operator()(), and WorldObjectSpellNearbyTargetCheck().


The documentation for this struct was generated from the following files: