aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-02-27 16:29:58 +0100
committerTrazom62 <none@none>2010-02-27 16:29:58 +0100
commitd9056adc8acd4915100f24af66f803bca897a80b (patch)
tree17ebaed269fc94ce70d7d2a0c8929dd416b9fb70 /src/game/Spell.cpp
parente010310c6dff74e04d218cb7279e295897285673 (diff)
refactor UnitAI::SelectTarget to allow having a predicate function (1st step).
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index a302079faa3..f4380197f5d 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1588,19 +1588,6 @@ struct ChainHealingOrder : public std::binary_function<const Unit*, const Unit*,
}
};
-// Helper for targets nearest to the spell target
-// The spell target is always first unless there is a target at _completely_ the same position (unbelievable case)
-struct TargetDistanceOrder : public std::binary_function<const Unit, const Unit, bool>
-{
- const Unit* MainTarget;
- TargetDistanceOrder(const Unit* Target) : MainTarget(Target) {};
- // functor for operator ">"
- bool operator()(const Unit* _Left, const Unit* _Right) const
- {
- return MainTarget->GetDistanceOrder(_Left,_Right);
- }
-};
-
void Spell::SearchChainTarget(std::list<Unit*> &TagUnitMap, float max_range, uint32 num, SpellTargets TargetType)
{
Unit *cur = m_targets.getUnitTarget();