refactor(Core/Misc): headers cleanup (#9259)

This commit is contained in:
Kargatum
2021-11-22 17:24:39 +07:00
committed by GitHub
parent 699d4835df
commit f62664c987
775 changed files with 1294 additions and 1165 deletions

View File

@@ -15,12 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h"
#include "icecrown_citadel.h"
enum Texts
{

View File

@@ -16,12 +16,12 @@
*/
#include "GridNotifiers.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "icecrown_citadel.h"
enum Texts
{

View File

@@ -15,13 +15,13 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
#include "SpellAuras.h"
#include "icecrown_citadel.h"
enum ScriptTexts
{

View File

@@ -15,11 +15,11 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"
#include "icecrown_citadel.h"
enum ScriptTexts
{

View File

@@ -16,7 +16,6 @@
*/
#include "CreatureTextMgr.h"
#include "icecrown_citadel.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "ScriptMgr.h"
@@ -24,6 +23,7 @@
#include "Transport.h"
#include "TransportMgr.h"
#include "Vehicle.h"
#include "icecrown_citadel.h"
enum Texts
{

View File

@@ -16,12 +16,12 @@
*/
#include "Group.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellInfo.h"
#include "icecrown_citadel.h"
#include <random>
enum ScriptTexts

View File

@@ -15,15 +15,15 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "MapMgr.h"
#include "ObjectMgr.h"
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"
#include "Vehicle.h"
#include "icecrown_citadel.h"
#include <random>
enum ScriptTexts
@@ -71,7 +71,7 @@ enum Events
uint32 const boneSpikeSummonId[3] = {69062, 72669, 72670};
struct BoneStormMoveTargetSelector : public Acore::unary_function<Unit*, bool>
struct BoneStormMoveTargetSelector
{
public:
BoneStormMoveTargetSelector(Creature* source) : _source(source) { }

View File

@@ -17,13 +17,13 @@
#include "GridNotifiers.h"
#include "Group.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "Vehicle.h"
#include "icecrown_citadel.h"
enum ScriptTexts
{
@@ -201,10 +201,10 @@ private:
};
// xinef: malleable goo selector, check for target validity
struct MalleableGooSelector : public Acore::unary_function<Unit*, bool>
struct MalleableGooSelector
{
const Unit* me;
MalleableGooSelector(Unit const* unit) : me(unit) {}
public:
MalleableGooSelector(Unit const* unit) : me(unit) { }
bool operator()(Unit const* target) const
{
@@ -216,6 +216,8 @@ struct MalleableGooSelector : public Acore::unary_function<Unit*, bool>
return me->IsValidAttackTarget(target);
}
private:
const Unit* me;
};
class boss_professor_putricide : public CreatureScript

View File

@@ -16,11 +16,11 @@
*/
#include "GridNotifiers.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuras.h"
#include "icecrown_citadel.h"
enum Texts
{

View File

@@ -16,11 +16,11 @@
*/
#include "GridNotifiers.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "icecrown_citadel.h"
enum Texts
{
@@ -237,7 +237,7 @@ private:
ObjectGuid _sindragosaGUID;
};
struct LastPhaseIceTombTargetSelector : public Acore::unary_function<Unit*, bool>
struct LastPhaseIceTombTargetSelector
{
public:
LastPhaseIceTombTargetSelector(Creature* source) : _source(source) { }

View File

@@ -20,15 +20,15 @@
#include "CreatureTextMgr.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
#include "Unit.h"
#include "Vehicle.h"
#include "icecrown_citadel.h"
enum Texts
{
@@ -370,7 +370,7 @@ void SendPacketToPlayers(WorldPacket const* data, Unit* source)
player->GetSession()->SendPacket(data);
}
struct ShadowTrapLKTargetSelector : public Acore::unary_function<Unit*, bool>
struct ShadowTrapLKTargetSelector
{
public:
ShadowTrapLKTargetSelector(Creature* source, bool playerOnly = true, bool reqLOS = false, float maxDist = 0.0f) : _source(source), _playerOnly(playerOnly), _reqLOS(reqLOS), _maxDist(maxDist) { }
@@ -396,7 +396,7 @@ private:
float _maxDist;
};
struct NonTankLKTargetSelector : public Acore::unary_function<Unit*, bool>
struct NonTankLKTargetSelector
{
public:
NonTankLKTargetSelector(Creature* source, bool playerOnly = true, bool reqLOS = false, float maxDist = 0.0f, uint32 exclude1 = 0, uint32 exclude2 = 0) : _source(source), _playerOnly(playerOnly), _reqLOS(reqLOS), _maxDist(maxDist), _exclude1(exclude1), _exclude2(exclude2) { }
@@ -430,7 +430,7 @@ private:
uint32 _exclude2;
};
struct DefileTargetSelector : public Acore::unary_function<Unit*, bool>
struct DefileTargetSelector
{
public:
DefileTargetSelector(Creature* source) : _source(source) { }
@@ -587,7 +587,7 @@ private:
Creature& _owner;
};
class NecroticPlagueTargetCheck : public Acore::unary_function<Unit*, bool>
class NecroticPlagueTargetCheck
{
public:
NecroticPlagueTargetCheck(Unit const* obj, uint32 notAura1, uint32 notAura2) : _sourceObj(obj), _notAura1(notAura1), _notAura2(notAura2) {}

View File

@@ -19,11 +19,11 @@
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h"
#include "icecrown_citadel.h"
enum Texts
{
@@ -157,8 +157,9 @@ public:
}
};
struct ManaVoidSelector : public Acore::unary_function<Unit*, bool>
struct ManaVoidSelector
{
public:
explicit ManaVoidSelector(WorldObject const* source) : _source(source) { }
bool operator()(Unit* unit) const
@@ -166,6 +167,7 @@ struct ManaVoidSelector : public Acore::unary_function<Unit*, bool>
return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) > 15.0f;
}
private:
WorldObject const* _source;
};

View File

@@ -15,18 +15,18 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "AccountMgr.h"
#include "Cell.h"
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "icecrown_citadel.h"
#include "ObjectMgr.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptMgr.h"
#include "SmartAI.h"
#include "SpellAuraEffects.h"

View File

@@ -15,12 +15,12 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icecrown_citadel.h"
#include "InstanceScript.h"
#include "Player.h"
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
#include "ScriptedGossip.h"
#include "Spell.h"
#include "icecrown_citadel.h"
#define GOSSIP_SENDER_ICC_PORT 631

View File

@@ -18,16 +18,16 @@
#include "AccountMgr.h"
#include "CreatureTextMgr.h"
#include "Group.h"
#include "icecrown_citadel.h"
#include "InstanceScript.h"
#include "Map.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "Transport.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "icecrown_citadel.h"
enum EventIds
{