Changeset 44 for trunk/src/bindings
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Location:
- trunk/src/bindings
- Files:
-
- 19 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/Makefile.am
r23 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # -
trunk/src/bindings/interface/Makefile.am
r23 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # … … 53 53 Readme.txt 54 54 55 -
trunk/src/bindings/interface/ScriptMgr.cpp
r2 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 … … 35 37 // ------------------- 36 38 37 MANGOS_DLL_EXPORT39 TRINITY_DLL_EXPORT 38 40 void ScriptsFree() 39 41 { // Free resources before library unload … … 48 50 } 49 51 50 MANGOS_DLL_EXPORT52 TRINITY_DLL_EXPORT 51 53 void ScriptsInit() 52 54 { … … 77 79 } 78 80 79 MANGOS_DLL_EXPORT81 TRINITY_DLL_EXPORT 80 82 bool GossipHello ( Player * player, Creature *_Creature ) 81 83 { … … 87 89 } 88 90 89 MANGOS_DLL_EXPORT91 TRINITY_DLL_EXPORT 90 92 bool GossipSelect( Player *player, Creature *_Creature,uint32 sender, uint32 action ) 91 93 { … … 99 101 } 100 102 101 MANGOS_DLL_EXPORT103 TRINITY_DLL_EXPORT 102 104 bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, uint32 action, const char* sCode ) 103 105 { … … 111 113 } 112 114 113 MANGOS_DLL_EXPORT115 TRINITY_DLL_EXPORT 114 116 bool QuestAccept( Player *player, Creature *_Creature, Quest *_Quest ) 115 117 { … … 121 123 } 122 124 123 MANGOS_DLL_EXPORT125 TRINITY_DLL_EXPORT 124 126 bool QuestSelect( Player *player, Creature *_Creature, Quest *_Quest ) 125 127 { … … 131 133 } 132 134 133 MANGOS_DLL_EXPORT135 TRINITY_DLL_EXPORT 134 136 bool QuestComplete( Player *player, Creature *_Creature, Quest *_Quest ) 135 137 { … … 141 143 } 142 144 143 MANGOS_DLL_EXPORT145 TRINITY_DLL_EXPORT 144 146 bool ChooseReward( Player *player, Creature *_Creature, Quest *_Quest, uint32 opt ) 145 147 { … … 151 153 } 152 154 153 MANGOS_DLL_EXPORT155 TRINITY_DLL_EXPORT 154 156 uint32 NPCDialogStatus( Player *player, Creature *_Creature ) 155 157 { … … 161 163 } 162 164 163 MANGOS_DLL_EXPORT165 TRINITY_DLL_EXPORT 164 166 uint32 GODialogStatus( Player *player, GameObject *_GO ) 165 167 { … … 173 175 } 174 176 175 MANGOS_DLL_EXPORT177 TRINITY_DLL_EXPORT 176 178 bool ItemHello( Player *player, Item *_Item, Quest *_Quest ) 177 179 { … … 185 187 } 186 188 187 MANGOS_DLL_EXPORT189 TRINITY_DLL_EXPORT 188 190 bool ItemQuestAccept( Player *player, Item *_Item, Quest *_Quest ) 189 191 { … … 197 199 } 198 200 199 MANGOS_DLL_EXPORT201 TRINITY_DLL_EXPORT 200 202 bool GOHello( Player *player, GameObject *_GO ) 201 203 { … … 209 211 } 210 212 211 MANGOS_DLL_EXPORT213 TRINITY_DLL_EXPORT 212 214 bool GOQuestAccept( Player *player, GameObject *_GO, Quest *_Quest ) 213 215 { … … 221 223 } 222 224 223 MANGOS_DLL_EXPORT225 TRINITY_DLL_EXPORT 224 226 bool GOChooseReward( Player *player, GameObject *_GO, Quest *_Quest, uint32 opt ) 225 227 { … … 233 235 } 234 236 235 MANGOS_DLL_EXPORT237 TRINITY_DLL_EXPORT 236 238 bool AreaTrigger ( Player *player, AreaTriggerEntry* atEntry ) 237 239 { … … 244 246 } 245 247 246 MANGOS_DLL_EXPORT248 TRINITY_DLL_EXPORT 247 249 bool ReceiveEmote ( Player *player, Creature *_Creature, uint32 emote ) 248 250 { … … 253 255 } 254 256 255 MANGOS_DLL_EXPORT257 TRINITY_DLL_EXPORT 256 258 bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets) 257 259 { … … 264 266 } 265 267 266 MANGOS_DLL_EXPORT268 TRINITY_DLL_EXPORT 267 269 CreatureAI* GetAI(Creature *_Creature ) 268 270 { … … 273 275 } 274 276 275 MANGOS_DLL_EXPORT277 TRINITY_DLL_EXPORT 276 278 InstanceData* CreateInstanceData(Map *map) 277 279 { -
trunk/src/bindings/interface/ScriptMgr.h
r2 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 … … 87 89 #define VISIBLE_RANGE (50.0f) 88 90 89 struct MANGOS_DLL_DECL ScriptedAI : public CreatureAI91 struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI 90 92 { 91 93 ScriptedAI(Creature* creature) : m_creature(creature) {} -
trunk/src/bindings/interface/Scripts/sc_default.cpp
r2 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 -
trunk/src/bindings/interface/Scripts/sc_defines.cpp
r2 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 -
trunk/src/bindings/interface/Scripts/sc_defines.h
r2 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 -
trunk/src/bindings/interface/config.h
r2 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 … … 24 26 #ifdef WIN32 25 27 //#include <windows.h> 26 #define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)28 #define TRINITY_DLL_EXPORT extern "C" __declspec(dllexport) 27 29 #elif defined( __GNUC__ ) 28 #define MANGOS_DLL_EXPORT extern "C"30 #define TRINITY_DLL_EXPORT extern "C" 29 31 #else 30 #define MANGOS_DLL_EXPORT extern "C" export32 #define TRINITY_DLL_EXPORT extern "C" export 31 33 #endif -
trunk/src/bindings/interface/system.cpp
r2 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 -
trunk/src/bindings/scripts/Makefile.am
r43 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # … … 416 416 417 417 418 -
trunk/src/bindings/scripts/ScriptMgr.cpp
r41 r44 634 634 // Load Script Text 635 635 outstring_log("TSCR: Loading Script Texts..."); 636 Load MangosStrings(TScriptDB,"script_texts",TEXT_SOURCE_RANGE,(TEXT_SOURCE_RANGE*2)+1);636 LoadTrinityStrings(TScriptDB,"script_texts",TEXT_SOURCE_RANGE,(TEXT_SOURCE_RANGE*2)+1); 637 637 638 638 // Gather Additional data from Script Texts … … 698 698 // Load Custom Text 699 699 outstring_log("TSCR: Loading Custom Texts..."); 700 Load MangosStrings(TScriptDB,"custom_texts",TEXT_SOURCE_RANGE*2,(TEXT_SOURCE_RANGE*3)+1);700 LoadTrinityStrings(TScriptDB,"custom_texts",TEXT_SOURCE_RANGE*2,(TEXT_SOURCE_RANGE*3)+1); 701 701 702 702 // Gather Additional data from Custom Texts … … 1175 1175 }extern *SpellSummary; 1176 1176 1177 MANGOS_DLL_EXPORT1177 TRINITY_DLL_EXPORT 1178 1178 void ScriptsFree() 1179 1179 { … … 1188 1188 } 1189 1189 1190 MANGOS_DLL_EXPORT1190 TRINITY_DLL_EXPORT 1191 1191 void ScriptsInit() 1192 1192 { … … 1932 1932 //*** Functions to be Exported *** 1933 1933 1934 MANGOS_DLL_EXPORT1934 TRINITY_DLL_EXPORT 1935 1935 bool GossipHello ( Player * player, Creature *_Creature ) 1936 1936 { … … 1942 1942 } 1943 1943 1944 MANGOS_DLL_EXPORT1944 TRINITY_DLL_EXPORT 1945 1945 bool GossipSelect( Player *player, Creature *_Creature, uint32 sender, uint32 action ) 1946 1946 { … … 1954 1954 } 1955 1955 1956 MANGOS_DLL_EXPORT1956 TRINITY_DLL_EXPORT 1957 1957 bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, uint32 action, const char* sCode ) 1958 1958 { … … 1966 1966 } 1967 1967 1968 MANGOS_DLL_EXPORT1968 TRINITY_DLL_EXPORT 1969 1969 bool QuestAccept( Player *player, Creature *_Creature, Quest const *_Quest ) 1970 1970 { … … 1976 1976 } 1977 1977 1978 MANGOS_DLL_EXPORT1978 TRINITY_DLL_EXPORT 1979 1979 bool QuestSelect( Player *player, Creature *_Creature, Quest const *_Quest ) 1980 1980 { … … 1986 1986 } 1987 1987 1988 MANGOS_DLL_EXPORT1988 TRINITY_DLL_EXPORT 1989 1989 bool QuestComplete( Player *player, Creature *_Creature, Quest const *_Quest ) 1990 1990 { … … 1996 1996 } 1997 1997 1998 MANGOS_DLL_EXPORT1998 TRINITY_DLL_EXPORT 1999 1999 bool ChooseReward( Player *player, Creature *_Creature, Quest const *_Quest, uint32 opt ) 2000 2000 { … … 2006 2006 } 2007 2007 2008 MANGOS_DLL_EXPORT2008 TRINITY_DLL_EXPORT 2009 2009 uint32 NPCDialogStatus( Player *player, Creature *_Creature ) 2010 2010 { … … 2016 2016 } 2017 2017 2018 MANGOS_DLL_EXPORT2018 TRINITY_DLL_EXPORT 2019 2019 uint32 GODialogStatus( Player *player, GameObject *_GO ) 2020 2020 { … … 2026 2026 } 2027 2027 2028 MANGOS_DLL_EXPORT2028 TRINITY_DLL_EXPORT 2029 2029 bool ItemHello( Player *player, Item *_Item, Quest const *_Quest ) 2030 2030 { … … 2036 2036 } 2037 2037 2038 MANGOS_DLL_EXPORT2038 TRINITY_DLL_EXPORT 2039 2039 bool ItemQuestAccept( Player *player, Item *_Item, Quest const *_Quest ) 2040 2040 { … … 2046 2046 } 2047 2047 2048 MANGOS_DLL_EXPORT2048 TRINITY_DLL_EXPORT 2049 2049 bool GOHello( Player *player, GameObject *_GO ) 2050 2050 { … … 2056 2056 } 2057 2057 2058 MANGOS_DLL_EXPORT2058 TRINITY_DLL_EXPORT 2059 2059 bool GOQuestAccept( Player *player, GameObject *_GO, Quest const *_Quest ) 2060 2060 { … … 2066 2066 } 2067 2067 2068 MANGOS_DLL_EXPORT2068 TRINITY_DLL_EXPORT 2069 2069 bool GOChooseReward( Player *player, GameObject *_GO, Quest const *_Quest, uint32 opt ) 2070 2070 { … … 2076 2076 } 2077 2077 2078 MANGOS_DLL_EXPORT2078 TRINITY_DLL_EXPORT 2079 2079 bool AreaTrigger( Player *player, AreaTriggerEntry * atEntry) 2080 2080 { … … 2087 2087 } 2088 2088 2089 MANGOS_DLL_EXPORT2089 TRINITY_DLL_EXPORT 2090 2090 CreatureAI* GetAI(Creature *_Creature) 2091 2091 { … … 2096 2096 } 2097 2097 2098 MANGOS_DLL_EXPORT2098 TRINITY_DLL_EXPORT 2099 2099 bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets) 2100 2100 { … … 2105 2105 } 2106 2106 2107 MANGOS_DLL_EXPORT2107 TRINITY_DLL_EXPORT 2108 2108 bool ReceiveEmote( Player *player, Creature *_Creature, uint32 emote ) 2109 2109 { … … 2114 2114 } 2115 2115 2116 MANGOS_DLL_EXPORT2116 TRINITY_DLL_EXPORT 2117 2117 InstanceData* CreateInstanceData(Map *map) 2118 2118 { -
trunk/src/bindings/scripts/ScriptMgr.h
r37 r44 1 /* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 1 /* Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 2 * 3 * Thanks to the original authors: ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 4 * 2 5 * This program is free software licensed under GPL version 2 3 6 * Please see the included DOCS/LICENSE.TXT for more information */ … … 79 82 80 83 #ifdef WIN32 81 #define MANGOS_DLL_EXPORT extern "C" __declspec(dllexport)84 #define TRINITY_DLL_EXPORT extern "C" __declspec(dllexport) 82 85 #elif defined( __GNUC__ ) 83 #define MANGOS_DLL_EXPORT extern "C"86 #define TRINITY_DLL_EXPORT extern "C" 84 87 #else 85 #define MANGOS_DLL_EXPORT extern "C" export88 #define TRINITY_DLL_EXPORT extern "C" export 86 89 #endif 87 90 -
trunk/src/bindings/scripts/include/sc_creature.cpp
r37 r44 1 /* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 1 /* Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 2 * 3 * Thanks to the original authors: ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 4 * 2 5 * This program is free software licensed under GPL version 2 3 6 * Please see the included DOCS/LICENSE.TXT for more information */ … … 507 510 Unit* ScriptedAI::DoSelectLowestHpFriendly(float range, uint32 MinHPDiff) 508 511 { 509 CellPair p( MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));512 CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 510 513 Cell cell(p); 511 514 cell.data.Part.reserved = ALL_DISTRICT; … … 514 517 Unit* pUnit = NULL; 515 518 516 MaNGOS::MostHPMissingInRange u_check(m_creature, range, MinHPDiff);517 MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange> searcher(pUnit, u_check);519 Trinity::MostHPMissingInRange u_check(m_creature, range, MinHPDiff); 520 Trinity::UnitLastSearcher<Trinity::MostHPMissingInRange> searcher(pUnit, u_check); 518 521 519 522 /* … … 521 524 This means that if we only search grid then we cannot possibly return pets or players so this is safe 522 525 */ 523 TypeContainerVisitor< MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange>, GridTypeMapContainer > grid_unit_searcher(searcher);526 TypeContainerVisitor<Trinity::UnitLastSearcher<Trinity::MostHPMissingInRange>, GridTypeMapContainer > grid_unit_searcher(searcher); 524 527 525 528 CellLock<GridReadGuard> cell_lock(cell, p); … … 530 533 std::list<Creature*> ScriptedAI::DoFindFriendlyCC(float range) 531 534 { 532 CellPair p( MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));535 CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 533 536 Cell cell(p); 534 537 cell.data.Part.reserved = ALL_DISTRICT; … … 537 540 std::list<Creature*> pList; 538 541 539 MaNGOS::FriendlyCCedInRange u_check(m_creature, range);540 MaNGOS::CreatureListSearcher<MaNGOS::FriendlyCCedInRange> searcher(pList, u_check);541 542 TypeContainerVisitor< MaNGOS::CreatureListSearcher<MaNGOS::FriendlyCCedInRange>, GridTypeMapContainer > grid_creature_searcher(searcher);542 Trinity::FriendlyCCedInRange u_check(m_creature, range); 543 Trinity::CreatureListSearcher<Trinity::FriendlyCCedInRange> searcher(pList, u_check); 544 545 TypeContainerVisitor<Trinity::CreatureListSearcher<Trinity::FriendlyCCedInRange>, GridTypeMapContainer > grid_creature_searcher(searcher); 543 546 544 547 CellLock<GridReadGuard> cell_lock(cell, p); … … 550 553 std::list<Creature*> ScriptedAI::DoFindFriendlyMissingBuff(float range, uint32 spellid) 551 554 { 552 CellPair p( MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));555 CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 553 556 Cell cell(p); 554 557 cell.data.Part.reserved = ALL_DISTRICT; … … 557 560 std::list<Creature*> pList; 558 561 559 MaNGOS::FriendlyMissingBuffInRange u_check(m_creature, range, spellid);560 MaNGOS::CreatureListSearcher<MaNGOS::FriendlyMissingBuffInRange> searcher(pList, u_check);561 562 TypeContainerVisitor< MaNGOS::CreatureListSearcher<MaNGOS::FriendlyMissingBuffInRange>, GridTypeMapContainer > grid_creature_searcher(searcher);562 Trinity::FriendlyMissingBuffInRange u_check(m_creature, range, spellid); 563 Trinity::CreatureListSearcher<Trinity::FriendlyMissingBuffInRange> searcher(pList, u_check); 564 565 TypeContainerVisitor<Trinity::CreatureListSearcher<Trinity::FriendlyMissingBuffInRange>, GridTypeMapContainer > grid_creature_searcher(searcher); 563 566 564 567 CellLock<GridReadGuard> cell_lock(cell, p); -
trunk/src/bindings/scripts/include/sc_creature.h
r14 r44 1 /* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 1 /* Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 2 * 3 * Thanks to the original authors: ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 4 * 2 5 * This program is free software licensed under GPL version 2 3 6 * Please see the included DOCS/LICENSE.TXT for more information */ … … 9 12 #include "Creature.h" 10 13 11 struct MANGOS_DLL_DECL ScriptedAI : public CreatureAI14 struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI 12 15 { 13 16 ScriptedAI(Creature* creature) : m_creature(creature), InCombat(false) {} … … 27 30 void EnterEvadeMode(); 28 31 29 //Called at any heal cast/item used (call non implemented in mangos)32 //Called at any heal cast/item used (call non implemented in Trinity) 30 33 void HealBy(Unit *healer, uint32 amount_healed) {} 31 34 … … 154 157 }; 155 158 156 struct MANGOS_DLL_DECL Scripted_NoMovementAI : public ScriptedAI159 struct TRINITY_DLL_DECL Scripted_NoMovementAI : public ScriptedAI 157 160 { 158 161 Scripted_NoMovementAI(Creature* creature) : ScriptedAI(creature) {} -
trunk/src/bindings/scripts/include/sc_gossip.h
r37 r44 1 /* Copyright (C) 2006 - 2008 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 1 /* Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 2 * 3 * Thanks to the original authors: ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> 4 * 2 5 * This program is free software licensed under GPL version 2 3 6 * Please see the included DOCS/LICENSE.TXT for more information */ -
trunk/src/bindings/scripts/include/sc_instance.h
r2 r44 23 23 #define OUT_LOAD_INST_DATA_FAIL error_log("SD2: Unable to load Instance Data for Instance %s (Map %d, Instance Id: %d).",instance->GetMapName(), instance->GetId(), instance->GetInstanceId()) 24 24 25 class MANGOS_DLL_DECL ScriptedInstance : public InstanceData25 class TRINITY_DLL_DECL ScriptedInstance : public InstanceData 26 26 { 27 27 public: -
trunk/src/bindings/scripts/sql/Makefile.am
r23 r44 5 5 # This program is free software; you can redistribute it and/or modify 6 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation; either version 3of the License, or7 # the Free Software Foundation; either version 2 of the License, or 8 8 # (at your option) any later version. 9 9 # -
trunk/src/bindings/scripts/sql/Makefile.in
r24 r44 21 21 # This program is free software; you can redistribute it and/or modify 22 22 # it under the terms of the GNU General Public License as published by 23 # the Free Software Foundation; either version 3of the License, or23 # the Free Software Foundation; either version 2 of the License, or 24 24 # (at your option) any later version. 25 25 # -
trunk/src/bindings/scripts/system.cpp
r2 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