Changeset 135 for trunk/src/game/PetAI.h

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

[svn] Merge from mangos.
Wed Oct 29 15:06:00 http://github.com/mangos/mangos/commit/034b8a34a9b621443e97d0ac4b667b603ba31ef1
Mon Oct 27 14:36:42 http://github.com/mangos/mangos/commit/fa072d15107b44344af8c9ef686839984e241a1b

Original author: megamage
Date: 2008-10-29 18:06:01-05:00

Files:
1 modified

Legend:

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

    r102 r135  
    2626 
    2727class Creature; 
     28class Spell; 
    2829 
    2930class TRINITY_DLL_DECL PetAI : public CreatureAI 
     
    3940        void AttackedBy(Unit*); 
    4041        bool IsVisible(Unit *) const; 
     42        void JustDied(Unit* who) { _stopAttack(); } 
    4143 
    4244        void UpdateAI(const uint32); 
    43         void UpdateAllies(); 
    4445        static int Permissible(const Creature *); 
    4546 
     
    4950        void _stopAttack(void); 
    5051 
     52        void UpdateAllies(); 
     53 
    5154        Creature &i_pet; 
    52         uint64 i_victimGuid; 
     55        bool inCombat; 
    5356        TimeTracker i_tracker; 
    54         //uint32 i_RepeatAction; 
    5557        std::set<uint64> m_AllySet; 
    5658        uint32 m_updateAlliesTimer; 
     59 
     60        typedef std::pair<Unit*, Spell*> TargetSpellPair; 
     61        std::vector<TargetSpellPair> m_targetSpellStore; 
    5762}; 
    5863#endif