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

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

[svn] * Reimplemented packet/update forwarding in more generic way
* Implemented far sight spells (Far Sight, Eagle Eye, etc) at unlimited range and properly forward packets
* Implemented bind vision spells (Mind Vision, etc) to forward packets at unlimited distance
* Implemented Sentry Totem (both vision switching/forwarding and alerting)
* Other misc possession fixes
* Added .bindsight and .unbindsight commands

Please test out the above spells (including Mind Control) and report any issues on the forums.

Original author: gvcoman
Date: 2008-11-14 20:40:35-06:00

Files:
1 modified

Legend:

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

    r231 r233  
    639639}; 
    640640 
     641typedef std::list<Player*> SharedVisionList; 
     642 
    641643struct CharmInfo 
    642644{ 
     
    10191021        CharmInfo* GetCharmInfo() { return m_charmInfo; } 
    10201022        CharmInfo* InitCharmInfo(Unit* charm); 
     1023        SharedVisionList const& GetSharedVisionList() { return m_sharedVision; } 
     1024        void AddPlayerToVision(Player* plr); 
     1025        void RemovePlayerFromVision(Player* plr); 
     1026        void RemoveAllFromVision(); 
    10211027        void UncharmSelf(); 
    10221028        void UnpossessSelf(bool attack); 
     
    13511357        CharmInfo *m_charmInfo; 
    13521358        bool m_isPossessed; 
     1359        SharedVisionList m_sharedVision; 
    13531360 
    13541361        virtual SpellSchoolMask GetMeleeDamageSchoolMask() const;