TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::WorldObjectSpellTrajTargetCheck Struct Reference

#include <Spell.h>

Public Member Functions

 WorldObjectSpellTrajTargetCheck (float range, Position const *position, Unit *caster, SpellInfo const *spellInfo)
 
bool operator() (WorldObject *target)
 
- Public Member Functions inherited from Trinity::WorldObjectSpellAreaTargetCheck
 WorldObjectSpellAreaTargetCheck (float range, Position const *position, Unit *caster, Unit *referer, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionContainer *condList)
 
bool operator() (WorldObject *target)
 
- Public Member Functions inherited from Trinity::WorldObjectSpellTargetCheck
 WorldObjectSpellTargetCheck (Unit *caster, Unit *referer, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionContainer *condList)
 
 ~WorldObjectSpellTargetCheck ()
 
bool operator() (WorldObject *target)
 

Additional Inherited Members

- Public Attributes inherited from Trinity::WorldObjectSpellAreaTargetCheck
float _range
 
Position const_position
 
- Public Attributes inherited from Trinity::WorldObjectSpellTargetCheck
Unit_caster
 
Unit_referer
 
SpellInfo const_spellInfo
 
SpellTargetCheckTypes _targetSelectionType
 
ConditionSourceInfo_condSrcInfo
 
ConditionContainer_condList
 

Constructor & Destructor Documentation

Trinity::WorldObjectSpellTrajTargetCheck::WorldObjectSpellTrajTargetCheck ( float  range,
Position const position,
Unit caster,
SpellInfo const spellInfo 
)
7548  : WorldObjectSpellAreaTargetCheck(range, position, caster, caster, spellInfo, TARGET_CHECK_DEFAULT, NULL) { }
WorldObjectSpellAreaTargetCheck(float range, Position const *position, Unit *caster, Unit *referer, SpellInfo const *spellInfo, SpellTargetCheckTypes selectionType, ConditionContainer *condList)
Definition: Spell.cpp:7512
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: SpellInfo.h:120

Member Function Documentation

bool Trinity::WorldObjectSpellTrajTargetCheck::operator() ( WorldObject target)
7551 {
7552  // return all targets on missile trajectory (0 - size of a missile)
7553  if (!_caster->HasInLine(target, target->GetObjectSize()))
7554  return false;
7556 }
Unit * _caster
Definition: Spell.h:857
bool HasInLine(Position const *pos, float width) const
Definition: Position.cpp:151
bool operator()(WorldObject *target)
Definition: Spell.cpp:7516
float GetObjectSize() const
Definition: Object.cpp:2656

+ Here is the call graph for this function:


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