Show
Ignore:
Timestamp:
11/21/08 08:48:46 (17 years ago)
Author:
yumileroy
Message:

*Add m_isAggressive. Only aggressive creatures will call AttackStart? and MoveInLineOfSight?.
*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

Original author: megamage
Date: 2008-11-20 18:54:50-06:00

Files:
1 modified

Legend:

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

    r260 r265  
    427427        bool canSwim() const { return GetCreatureInfo()->InhabitType & INHABIT_WATER; } 
    428428        bool canFly()  const { return GetCreatureInfo()->InhabitType & INHABIT_AIR; } 
     429        bool isAggressive() const { return m_isAggressive; } 
     430        void SetAggressive(bool agg) { m_isAggressive = agg; } 
    429431        ///// TODO RENAME THIS!!!!! 
    430432        bool isCanTrainingOf(Player* player, bool msg) const; 
     
    637639        bool m_isPet;                                       // set only in Pet::Pet 
    638640        bool m_isTotem;                                     // set only in Totem::Totem 
     641        bool m_isAggressive; 
    639642        void RegenerateMana(); 
    640643        void RegenerateHealth();