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

Location:
trunk/src/bindings/scripts/include
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • 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 * 
    25 * This program is free software licensed under GPL version 2 
    36 * Please see the included DOCS/LICENSE.TXT for more information */ 
     
    507510Unit* ScriptedAI::DoSelectLowestHpFriendly(float range, uint32 MinHPDiff) 
    508511{ 
    509     CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
     512    CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
    510513    Cell cell(p); 
    511514    cell.data.Part.reserved = ALL_DISTRICT; 
     
    514517    Unit* pUnit = NULL; 
    515518 
    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); 
    518521 
    519522    /* 
     
    521524    This means that if we only search grid then we cannot possibly return pets or players so this is safe 
    522525    */ 
    523     TypeContainerVisitor<MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange>, GridTypeMapContainer >  grid_unit_searcher(searcher); 
     526    TypeContainerVisitor<Trinity::UnitLastSearcher<Trinity::MostHPMissingInRange>, GridTypeMapContainer >  grid_unit_searcher(searcher); 
    524527 
    525528    CellLock<GridReadGuard> cell_lock(cell, p); 
     
    530533std::list<Creature*> ScriptedAI::DoFindFriendlyCC(float range) 
    531534{ 
    532     CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
     535    CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
    533536    Cell cell(p); 
    534537    cell.data.Part.reserved = ALL_DISTRICT; 
     
    537540    std::list<Creature*> pList; 
    538541 
    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); 
    543546 
    544547    CellLock<GridReadGuard> cell_lock(cell, p); 
     
    550553std::list<Creature*> ScriptedAI::DoFindFriendlyMissingBuff(float range, uint32 spellid) 
    551554{ 
    552     CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
     555    CellPair p(Trinity::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY())); 
    553556    Cell cell(p); 
    554557    cell.data.Part.reserved = ALL_DISTRICT; 
     
    557560    std::list<Creature*> pList; 
    558561 
    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); 
    563566 
    564567    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 * 
    25 * This program is free software licensed under GPL version 2 
    36 * Please see the included DOCS/LICENSE.TXT for more information */ 
     
    912#include "Creature.h" 
    1013 
    11 struct MANGOS_DLL_DECL ScriptedAI : public CreatureAI 
     14struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI 
    1215{ 
    1316    ScriptedAI(Creature* creature) : m_creature(creature), InCombat(false) {} 
     
    2730    void EnterEvadeMode(); 
    2831 
    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) 
    3033    void HealBy(Unit *healer, uint32 amount_healed) {} 
    3134 
     
    154157}; 
    155158 
    156 struct MANGOS_DLL_DECL Scripted_NoMovementAI : public ScriptedAI 
     159struct TRINITY_DLL_DECL Scripted_NoMovementAI : public ScriptedAI 
    157160{ 
    158161    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 * 
    25 * This program is free software licensed under GPL version 2 
    36 * Please see the included DOCS/LICENSE.TXT for more information */ 
  • trunk/src/bindings/scripts/include/sc_instance.h

    r2 r44  
    2323#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()) 
    2424 
    25 class MANGOS_DLL_DECL ScriptedInstance : public InstanceData 
     25class TRINITY_DLL_DECL ScriptedInstance : public InstanceData 
    2626{ 
    2727    public: