Changeset 44 for trunk/src/game/Chat.cpp
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Chat.cpp
r42 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 … … 109 111 { "lootrecipient", SEC_GAMEMASTER, &ChatHandler::HandleGetLootRecipient, "", NULL }, 110 112 { "arena", SEC_ADMINISTRATOR, &ChatHandler::HandleDebugArenaCommand, "", NULL }, 113 { "threatlist", SEC_ADMINISTRATOR, &ChatHandler::HandleDebugThreatList, "", NULL }, 114 { "hostilrefs", SEC_ADMINISTRATOR, &ChatHandler::HandleDebugHostilRefList, "", NULL }, 111 115 { NULL, 0, NULL, "", NULL } 112 116 }; … … 166 170 { "item_enchantment_template", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadItemEnchantementsCommand, "", NULL }, 167 171 { "item_loot_template", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadLootTemplatesItemCommand, "", NULL }, 168 { " mangos_string", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadMangosStringCommand,"", NULL },172 { "trinity_string", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadTrinityStringCommand, "", NULL }, 169 173 { "npc_gossip", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadNpcGossipCommand, "", NULL }, 170 174 { "npc_trainer", SEC_ADMINISTRATOR, &ChatHandler::HandleReloadNpcTrainerCommand, "", NULL }, … … 468 472 { "cometome", SEC_ADMINISTRATOR, &ChatHandler::HandleComeToMeCommand, "", NULL }, 469 473 { "damage", SEC_ADMINISTRATOR, &ChatHandler::HandleDamageCommand, "", NULL }, 470 { "ircpm", SEC_PLAYER, &ChatHandler::HandleIRCpmCommand, "", NULL },471 474 { "combatstop", SEC_GAMEMASTER, &ChatHandler::HandleCombatStopCommand, "", NULL }, 472 475 { "flusharenapoints", SEC_ADMINISTRATOR, &ChatHandler::HandleFlushArenaPointsCommand, "", NULL }, … … 516 519 } 517 520 518 const char *ChatHandler::Get MangosString(int32 entry)519 { 520 return m_session->Get MangosString(entry);521 const char *ChatHandler::GetTrinityString(int32 entry) 522 { 523 return m_session->GetTrinityString(entry); 521 524 } 522 525 … … 582 585 void ChatHandler::SendSysMessage(int32 entry) 583 586 { 584 SendSysMessage(Get MangosString(entry));587 SendSysMessage(GetTrinityString(entry)); 585 588 } 586 589 587 590 void ChatHandler::PSendSysMessage(int32 entry, ...) 588 591 { 589 const char *format = Get MangosString(entry);592 const char *format = GetTrinityString(entry); 590 593 va_list ap; 591 594 char str [1024]; … … 1029 1032 { 1030 1033 // search near player then 1031 CellPair p( MaNGOS::ComputeCellPair(pl->GetPositionX(), pl->GetPositionY()));1034 CellPair p(Trinity::ComputeCellPair(pl->GetPositionX(), pl->GetPositionY())); 1032 1035 Cell cell(p); 1033 1036 cell.data.Part.reserved = ALL_DISTRICT; 1034 1037 1035 MaNGOS::GameObjectWithDbGUIDCheck go_check(*pl,lowguid);1036 MaNGOS::GameObjectSearcher<MaNGOS::GameObjectWithDbGUIDCheck> checker(obj,go_check);1037 1038 TypeContainerVisitor< MaNGOS::GameObjectSearcher<MaNGOS::GameObjectWithDbGUIDCheck>, GridTypeMapContainer > object_checker(checker);1038 Trinity::GameObjectWithDbGUIDCheck go_check(*pl,lowguid); 1039 Trinity::GameObjectSearcher<Trinity::GameObjectWithDbGUIDCheck> checker(obj,go_check); 1040 1041 TypeContainerVisitor<Trinity::GameObjectSearcher<Trinity::GameObjectWithDbGUIDCheck>, GridTypeMapContainer > object_checker(checker); 1039 1042 CellLock<GridReadGuard> cell_lock(cell, p); 1040 1043 cell_lock->Visit(cell_lock, object_checker, *MapManager::Instance().GetMap(pl->GetMapId(), pl));