mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
Remove unused include directives pt1
This commit is contained in:
parent
66870de6ee
commit
b7aaadd165
32 changed files with 10 additions and 70 deletions
|
|
@ -25,16 +25,12 @@
|
|||
#include "AggressorAI.h"
|
||||
#include "Errors.h"
|
||||
#include "Creature.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "VMapFactory.h"
|
||||
#include "World.h"
|
||||
#include "DBCStores.h"
|
||||
#include "Map.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include <list>
|
||||
|
||||
int
|
||||
AggressorAI::Permissible(const Creature* creature)
|
||||
int AggressorAI::Permissible(const Creature* creature)
|
||||
{
|
||||
// have some hostile factions, it will be selected by IsHostileTo check at MoveInLineOfSight
|
||||
if (!creature->IsCivilian() && !creature->IsNeutralToAll())
|
||||
|
|
@ -47,8 +43,7 @@ AggressorAI::AggressorAI(Creature* c) : CreatureAI(c), i_state(STATE_NORMAL), i_
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
AggressorAI::MoveInLineOfSight(Unit* u)
|
||||
void AggressorAI::MoveInLineOfSight(Unit* u)
|
||||
{
|
||||
// Ignore Z for flying creatures
|
||||
if (!m_creature->CanFly() && m_creature->GetDistanceZ(u) > CREATURE_Z_ATTACK_RANGE)
|
||||
|
|
@ -125,8 +120,7 @@ void AggressorAI::EnterEvadeMode()
|
|||
m_creature->SetLootRecipient(NULL);
|
||||
}
|
||||
|
||||
void
|
||||
AggressorAI::UpdateAI(const uint32 /*diff*/)
|
||||
void AggressorAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
// update i_victimGuid if m_creature->getVictim() !=0 and changed
|
||||
if (!m_creature->SelectHostileTarget() || !m_creature->getVictim())
|
||||
|
|
@ -137,15 +131,13 @@ AggressorAI::UpdateAI(const uint32 /*diff*/)
|
|||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
bool
|
||||
AggressorAI::IsVisible(Unit* pl) const
|
||||
bool AggressorAI::IsVisible(Unit* pl) const
|
||||
{
|
||||
return m_creature->IsWithinDist(pl, sWorld.getConfig(CONFIG_FLOAT_SIGHT_MONSTER))
|
||||
&& pl->IsVisibleForOrDetect(m_creature, m_creature, true);
|
||||
}
|
||||
|
||||
void
|
||||
AggressorAI::AttackStart(Unit* u)
|
||||
void AggressorAI::AttackStart(Unit* u)
|
||||
{
|
||||
if (!u || !m_creature->CanAttackByItself())
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,6 @@
|
|||
#define _AUCTION_HOUSE_MGR_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "Policies/Singleton.h"
|
||||
#include "DBCStructure.h"
|
||||
|
||||
class Item;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include "Bag.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Database/DatabaseEnv.h"
|
||||
#include "Log.h"
|
||||
#include "UpdateData.h"
|
||||
|
||||
Bag::Bag(): Item()
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
*/
|
||||
|
||||
#include "Calendar.h"
|
||||
#include "Guild.h"
|
||||
#include "Mail.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "ProgressBar.h"
|
||||
|
|
|
|||
|
|
@ -25,10 +25,8 @@
|
|||
#ifndef MANGOS_CALENDAR_H
|
||||
#define MANGOS_CALENDAR_H
|
||||
|
||||
#include "Policies/Singleton.h"
|
||||
#include "Common.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "SharedDefines.h"
|
||||
|
||||
enum CalendarEventType
|
||||
{
|
||||
|
|
@ -234,7 +232,7 @@ class CalendarMgr
|
|||
|
||||
CalendarEvent* AddEvent(ObjectGuid const& guid, std::string title, std::string description, uint32 type, uint32 repeatable, uint32 maxInvites,
|
||||
int32 dungeonId, time_t eventTime, time_t unkTime, uint32 flags);
|
||||
|
||||
|
||||
CalendarInvite* AddInvite(CalendarEvent* event, ObjectGuid const& senderGuid, ObjectGuid const& inviteeGuid, CalendarInviteStatus status, CalendarModerationRank rank, const std::string& text, time_t statusTime);
|
||||
|
||||
void RemoveEvent(uint64 eventId, Player* remover);
|
||||
|
|
|
|||
|
|
@ -24,12 +24,9 @@
|
|||
|
||||
#include "Corpse.h"
|
||||
#include "Player.h"
|
||||
#include "UpdateMask.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "Database/DatabaseEnv.h"
|
||||
#include "Opcodes.h"
|
||||
#include "GossipDef.h"
|
||||
#include "World.h"
|
||||
#include "ObjectMgr.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#include "ObjectGuid.h"
|
||||
#include "SQLStorages.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "QuestDef.h"
|
||||
#include "GossipDef.h"
|
||||
#include "Player.h"
|
||||
#include "GameEventMgr.h"
|
||||
|
|
@ -42,8 +41,6 @@
|
|||
#include "MapManager.h"
|
||||
#include "CreatureAI.h"
|
||||
#include "CreatureAISelector.h"
|
||||
#include "Formulas.h"
|
||||
#include "WaypointMovementGenerator.h"
|
||||
#include "InstanceData.h"
|
||||
#include "MapPersistentStateMgr.h"
|
||||
#include "BattleGround/BattleGroundMgr.h"
|
||||
|
|
|
|||
|
|
@ -27,12 +27,9 @@
|
|||
|
||||
#include "Common.h"
|
||||
#include "Unit.h"
|
||||
#include "UpdateMask.h"
|
||||
#include "ItemPrototype.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "LootMgr.h"
|
||||
#include "DBCEnums.h"
|
||||
#include "Database/DatabaseEnv.h"
|
||||
#include "Cell.h"
|
||||
|
||||
#include <list>
|
||||
|
|
|
|||
|
|
@ -25,10 +25,7 @@
|
|||
#ifndef MANGOS_CREATUREAI_H
|
||||
#define MANGOS_CREATUREAI_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "Platform/Define.h"
|
||||
#include "Policies/Singleton.h"
|
||||
#include "Dynamic/ObjectRegistry.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "Dynamic/FactoryHolder.h"
|
||||
#include "ObjectGuid.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include "MovementGenerator.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "Pet.h"
|
||||
#include "Log.h"
|
||||
|
||||
INSTANTIATE_SINGLETON_1(CreatureAIRegistry);
|
||||
INSTANTIATE_SINGLETON_1(MovementGeneratorRegistry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue