Changeset 44 for trunk/src/game/Player.h

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

[svn] * Merge Temp dev SVN with Assembla.
* Changes include:

  • Implementation of w12x's Outdoor PvP and Game Event Systems.
  • Temporary removal of IRC Chat Bot (until infinite loop when disabled is fixed).
  • All mangos -> trinity (to convert your mangos_string table, please run mangos_string_to_trinity_string.sql).
  • Improved Config cleanup.
  • And many more changes.

Original author: Seline
Date: 2008-10-14 11:57:03-05:00

Files:
1 modified

Legend:

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

    r37 r44  
    11/* 
    2  * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 
     2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 
     3 * 
     4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 
    35 * 
    46 * This program is free software; you can redistribute it and/or modify 
     
    911 * This program is distributed in the hope that it will be useful, 
    1012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1214 * GNU General Public License for more details. 
    1315 * 
    1416 * You should have received a copy of the GNU General Public License 
    1517 * along with this program; if not, write to the Free Software 
    16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1719 */ 
    1820 
     
    4648class UpdateMask; 
    4749class PlayerSocial; 
     50class OutdoorPvP; 
    4851 
    4952typedef std::deque<Mail*> PlayerMails; 
     
    833836}; 
    834837 
    835 class MANGOS_DLL_SPEC PlayerTaxi 
     838class TRINITY_DLL_SPEC PlayerTaxi 
    836839{ 
    837840    public: 
     
    884887}; 
    885888 
    886 class MANGOS_DLL_SPEC Player : public Unit 
     889class TRINITY_DLL_SPEC Player : public Unit 
    887890{ 
    888891    friend class WorldSession; 
     
    17771780        void CastItemCombatSpell(Item *item,Unit* Target, WeaponAttackType attType); 
    17781781 
    1779         void SendInitWorldStates(); 
     1782        void SendInitWorldStates(bool force = false, uint32 forceZoneId = 0); 
    17801783        void SendUpdateWorldState(uint32 Field, uint32 Value); 
    17811784        void SendDirectMessage(WorldPacket *data); 
     
    18041807        uint32 GetBattleGroundQueueIdFromLevel() const; 
    18051808 
    1806         bool InBattleGroundQueue() const          
    1807             {     
    1808                 for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; i++)    
    1809                 if (m_bgBattleGroundQueueID[i].bgQueueType != 0)          
    1810                         return true;      
    1811                 return false;     
    1812             } 
     1809        bool InBattleGroundQueue() const 
     1810        { 
     1811            for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; i++) 
     1812                if (m_bgBattleGroundQueueID[i].bgQueueType != 0) 
     1813                    return true; 
     1814            return false; 
     1815        } 
    18131816 
    18141817        uint32 GetBattleGroundQueueId(uint32 index) const { return m_bgBattleGroundQueueID[index].bgQueueType; } 
     
    19031906        bool GetBGAccessByLevel(uint32 bgTypeId) const; 
    19041907        bool isAllowUseBattleGroundObject(); 
     1908 
     1909        /*********************************************************/ 
     1910        /***               OUTDOOR PVP SYSTEM                  ***/ 
     1911        /*********************************************************/ 
     1912 
     1913        OutdoorPvP * GetOutdoorPvP() const; 
     1914        // returns true if the player is in active state for outdoor pvp objective capturing, false otherwise 
     1915        bool IsOutdoorPvPActive(); 
    19051916 
    19061917        /*********************************************************/