Changeset 44 for trunk/src/game/World.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/World.h

    r39 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 
     
    6163    WUPDATE_EVENTS      = 6, 
    6264    WUPDATE_COUNT       = 7, 
    63  
    64     WUPDATE_AUTOANC = 7 
    6565 
    6666}; 
     
    159159    CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, 
    160160 
    161         CONFIG_PLAYER_START_HONOR, 
    162         CONFIG_PLAYER_START_ARENAPTS, 
    163         CONFIG_GM_START_LEVEL, 
    164         CONFIG_INSTANT_LOGOUT, 
    165         CONFIG_BG_START_MUSIC, 
    166         CONFIG_START_ALL_SPELLS, 
    167         CONFIG_QUEUE_FOR_GM, 
    168         CONFIG_HONOR_AFTER_DUEL, 
    169         CONFIG_KICK_FROM_GMISLAND, 
    170         CONFIG_START_ALL_EXPLORED, 
    171         CONFIG_DISABLE_BREATHING, 
    172         CONFIG_DISABLE_RES_SICKNESS, 
    173         CONFIG_START_ALL_REP, 
    174         CONFIG_ALWAYS_MAXSKILL, 
    175         CONFIG_START_ALL_TAXI, 
    176         CONFIG_PVP_TOKEN_ENABLE, 
    177         CONFIG_PVP_TOKEN_MAP_TYPE, 
    178         CONFIG_PVP_TOKEN_ID, 
    179         CONFIG_PVP_TOKEN_COUNT, 
    180         CONFIG_NO_RESET_TALENT_COST, 
     161    CONFIG_PLAYER_START_GOLD, 
     162    CONFIG_PLAYER_START_HONOR, 
     163    CONFIG_PLAYER_START_ARENAPTS, 
     164    CONFIG_GM_START_LEVEL, 
     165    CONFIG_INSTANT_LOGOUT, 
     166    CONFIG_BG_START_MUSIC, 
     167    CONFIG_START_ALL_SPELLS, 
     168    CONFIG_HONOR_AFTER_DUEL, 
     169    CONFIG_START_ALL_EXPLORED, 
     170    CONFIG_DISABLE_BREATHING, 
     171    CONFIG_START_ALL_REP, 
     172    CONFIG_ALWAYS_MAXSKILL, 
     173    CONFIG_START_ALL_TAXI, 
     174    CONFIG_PVP_TOKEN_ENABLE, 
     175    CONFIG_PVP_TOKEN_MAP_TYPE, 
     176    CONFIG_PVP_TOKEN_ID, 
     177    CONFIG_PVP_TOKEN_COUNT, 
     178    CONFIG_NO_RESET_TALENT_COST, 
    181179 
    182180    CONFIG_THREAT_RADIUS, 
     
    371369        void AddSession(WorldSession *s); 
    372370 
    373         void SendRNDBroadcast(); 
    374  
    375371        bool RemoveSession(uint32 id); 
    376372        /// Get the number of current active sessions 
     
    487483        bool IsScriptScheduled() const { return !m_scriptSchedule.empty(); } 
    488484 
    489         static float PlayerStartGold() { return m_PlayerStartGold; } 
     485        bool IsAllowedMap(uint32 mapid) { return m_forbiddenMapIds.count(mapid) == 0 ;} 
    490486 
    491487        // for max speed access 
     
    502498        void UpdateResultQueue(); 
    503499        void InitResultQueue(); 
     500 
     501        void ForceGameEventUpdate(); 
    504502 
    505503        void UpdateRealmCharCount(uint32 accid); 
     
    540538        std::string m_motd; 
    541539        std::string m_dataPath; 
     540        std::set<uint32> m_forbiddenMapIds; 
    542541 
    543542        uint32 m_ShutdownTimer; 
    544543        uint32 m_ShutdownMask; 
    545  
    546         static float m_PlayerStartGold; 
    547544 
    548545        // for max speed access 
     
    571568extern uint32 realmID; 
    572569 
    573 #define sWorld MaNGOS::Singleton<World>::Instance() 
     570#define sWorld Trinity::Singleton<World>::Instance() 
    574571#endif 
    575572/// @}