Changeset 44 for trunk/src/game/World.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/World.h
r39 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 … … 61 63 WUPDATE_EVENTS = 6, 62 64 WUPDATE_COUNT = 7, 63 64 WUPDATE_AUTOANC = 765 65 66 66 }; … … 159 159 CONFIG_DEATH_CORPSE_RECLAIM_DELAY_PVE, 160 160 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, 181 179 182 180 CONFIG_THREAT_RADIUS, … … 371 369 void AddSession(WorldSession *s); 372 370 373 void SendRNDBroadcast();374 375 371 bool RemoveSession(uint32 id); 376 372 /// Get the number of current active sessions … … 487 483 bool IsScriptScheduled() const { return !m_scriptSchedule.empty(); } 488 484 489 static float PlayerStartGold() { return m_PlayerStartGold;}485 bool IsAllowedMap(uint32 mapid) { return m_forbiddenMapIds.count(mapid) == 0 ;} 490 486 491 487 // for max speed access … … 502 498 void UpdateResultQueue(); 503 499 void InitResultQueue(); 500 501 void ForceGameEventUpdate(); 504 502 505 503 void UpdateRealmCharCount(uint32 accid); … … 540 538 std::string m_motd; 541 539 std::string m_dataPath; 540 std::set<uint32> m_forbiddenMapIds; 542 541 543 542 uint32 m_ShutdownTimer; 544 543 uint32 m_ShutdownMask; 545 546 static float m_PlayerStartGold;547 544 548 545 // for max speed access … … 571 568 extern uint32 realmID; 572 569 573 #define sWorld MaNGOS::Singleton<World>::Instance()570 #define sWorld Trinity::Singleton<World>::Instance() 574 571 #endif 575 572 /// @}