Changeset 69 for trunk/src/game/Unit.h

Show
Ignore:
Timestamp:
11/19/08 13:31:22 (17 years ago)
Author:
yumileroy
Message:

[svn] Add Unit::IsWithinCombatDist? function to check melee range and spell range (now range is related to the attacker's bounding_radius and target's combat_reach, not sure if both should be combat_reach).

Original author: megamage
Date: 2008-10-19 14:42:12-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.h

    r61 r69  
    719719        bool haveOffhandWeapon() const; 
    720720        bool canReachWithAttack(Unit *pVictim) const; 
     721        bool IsWithinCombatDist(Unit *obj, float dist2compare) const; 
    721722        uint32 m_extraAttacks; 
    722723