Changeset 44 for trunk/src/game/Player.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Player.h
r37 r44 1 1 /* 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/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 … … 46 48 class UpdateMask; 47 49 class PlayerSocial; 50 class OutdoorPvP; 48 51 49 52 typedef std::deque<Mail*> PlayerMails; … … 833 836 }; 834 837 835 class MANGOS_DLL_SPEC PlayerTaxi838 class TRINITY_DLL_SPEC PlayerTaxi 836 839 { 837 840 public: … … 884 887 }; 885 888 886 class MANGOS_DLL_SPEC Player : public Unit889 class TRINITY_DLL_SPEC Player : public Unit 887 890 { 888 891 friend class WorldSession; … … 1777 1780 void CastItemCombatSpell(Item *item,Unit* Target, WeaponAttackType attType); 1778 1781 1779 void SendInitWorldStates( );1782 void SendInitWorldStates(bool force = false, uint32 forceZoneId = 0); 1780 1783 void SendUpdateWorldState(uint32 Field, uint32 Value); 1781 1784 void SendDirectMessage(WorldPacket *data); … … 1804 1807 uint32 GetBattleGroundQueueIdFromLevel() const; 1805 1808 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 } 1813 1816 1814 1817 uint32 GetBattleGroundQueueId(uint32 index) const { return m_bgBattleGroundQueueID[index].bgQueueType; } … … 1903 1906 bool GetBGAccessByLevel(uint32 bgTypeId) const; 1904 1907 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(); 1905 1916 1906 1917 /*********************************************************/