TrinityCore
Loading...
Searching...
No Matches
Trinity::WorldObjectSpellNearbyTargetCheck Struct Reference

#include <Spell.h>

+ Inheritance diagram for Trinity::WorldObjectSpellNearbyTargetCheck:

Public Member Functions

 WorldObjectSpellNearbyTargetCheck (float range, WorldObject *caster, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionContainer const *condList, SpellTargetObjectTypes objectType)
 
bool operator() (WorldObject *target)
 

Public Attributes

float _range
 
Position const * _position
 

Additional Inherited Members

- Protected Member Functions inherited from Trinity::WorldObjectSpellTargetCheck
 WorldObjectSpellTargetCheck (WorldObject *caster, WorldObject *referer, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionContainer const *condList, SpellTargetObjectTypes objectType)
 
 ~WorldObjectSpellTargetCheck ()
 
bool operator() (WorldObject *target) const
 
- Protected Attributes inherited from Trinity::WorldObjectSpellTargetCheck
WorldObject * _caster
 
WorldObject * _referer
 
SpellInfo const * _spellInfo
 
SpellTargetCheckTypes _targetSelectionType
 
std::unique_ptr< ConditionSourceInfo > _condSrcInfo
 
ConditionContainer const * _condList
 
SpellTargetObjectTypes _objectType
 

Detailed Description

Definition at line 1029 of file Spell.h.

Constructor & Destructor Documentation

◆ WorldObjectSpellNearbyTargetCheck()

Trinity::WorldObjectSpellNearbyTargetCheck::WorldObjectSpellNearbyTargetCheck ( float  range,
WorldObject *  caster,
SpellInfo const *  spellInfo,
SpellTargetCheckTypes  selectionType,
ConditionContainer const *  condList,
SpellTargetObjectTypes  objectType 
)

Definition at line 9401 of file Spell.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 9405 of file Spell.cpp.

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

Member Data Documentation

◆ _position

Position const* Trinity::WorldObjectSpellNearbyTargetCheck::_position

Definition at line 1032 of file Spell.h.

Referenced by operator()().

◆ _range

float Trinity::WorldObjectSpellNearbyTargetCheck::_range

Definition at line 1031 of file Spell.h.

Referenced by operator()().


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