1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 23:27:45 +00:00

More cleanup yet

This commit is contained in:
Mordred 2018-06-02 15:52:35 +02:00
parent 911bf39af8
commit 738b09d5c5
29 changed files with 25 additions and 83 deletions

View file

@ -9,7 +9,6 @@
#include "Actor/Player.h"
#include <cmath>
#include <boost/make_shared.hpp>
using namespace Core::Entity;
using namespace Core::Common;

View file

@ -2,14 +2,14 @@
#define _ACTIONCOLLISION_H
#include <Common.h>
#include "Action.h"
#include "Forwards.h"
namespace Core {
namespace Data
{
struct Action;
}
namespace Entity {
enum class TargetFilter

View file

@ -1,7 +1,7 @@
#ifndef _ACTIONMOUNT_H_
#define _ACTIONMOUNT_H_
#include "../Forwards.h"
#include "Forwards.h"
#include "Action.h"
namespace Core {

View file

@ -1,7 +1,7 @@
#ifndef _ACTIONTELEPORT_H_
#define _ACTIONTELEPORT_H_
#include "../Forwards.h"
#include "Forwards.h"
#include "Action.h"
namespace Core {

View file

@ -6,7 +6,6 @@
#include "Network/PacketWrappers/ActorControlPacket143.h"
#include "Actor/Player.h"
#include "Event/EventHandler.h"
#include "EventAction.h"
#include "Framework.h"

View file

@ -3,7 +3,7 @@
#include <Common.h>
#include "../Forwards.h"
#include "Forwards.h"
#include "Action.h"
namespace Core {

View file

@ -1,7 +1,7 @@
#ifndef _EVENTITEMACTION_H_
#define _EVENTITEMACTION_H_
#include "../Forwards.h"
#include "Forwards.h"
#include "Action.h"
namespace Core {

View file

@ -1,11 +1,10 @@
#include "Actor.h"
#include <Network/PacketContainer.h>
#include <Network/GamePacket.h>
#include <Util/Util.h>
#include <Util/UtilMath.h>
#include "Forwards.h"
#include "Action/Action.h"
#include "Action/ActionCollision.h"
@ -19,8 +18,6 @@
#include "ServerZone.h"
#include "Session.h"
#include "Zone/Zone.h"
#include "Zone/TerritoryMgr.h"
@ -28,11 +25,6 @@
#include "Math/CalcBattle.h"
#include "ServerZone.h"
#include "Session.h"
#include "Actor.h"
#include "Player.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -2,7 +2,6 @@
#include <Util/UtilMath.h>
#include <Network/PacketContainer.h>
#include <Exd/ExdDataGenerated.h>
#include <Network/GamePacket.h>
#include "Forwards.h"
#include "Action/Action.h"

View file

@ -6,7 +6,6 @@
#include <Logging/Logger.h>
#include <Network/GamePacket.h>
#include <Network/GamePacketNew.h>
#include <Network/CommonNetwork.h>
#include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <Network/PacketContainer.h>
#include <Util/UtilMath.h>

View file

@ -10,10 +10,11 @@ namespace Entity
class EventObject : public Actor
{
public:
EventObject( uint32_t actorId, uint32_t objectId, uint32_t gimmickId, uint8_t initialState, Common::FFXIVARR_POSITION3 pos,
float rotation, const std::string& givenName = "none" );
EventObject( uint32_t actorId, uint32_t objectId, uint32_t gimmickId, uint8_t initialState,
Common::FFXIVARR_POSITION3 pos, float rotation, const std::string& givenName = "none" );
using OnTalkEventHandler = std::function< void( Entity::Player&, Entity::EventObjectPtr, InstanceContentPtr, uint64_t ) >;
using OnTalkEventHandler = std::function< void( Entity::Player&, Entity::EventObjectPtr,
InstanceContentPtr, uint64_t ) >;
uint32_t getGimmickId() const;
void setGimmickId( uint32_t gimmickId );

View file

@ -30,11 +30,6 @@
#include "Script/ScriptMgr.h"
#include "Inventory/Item.h"
#include "Inventory/Inventory.h"
#include "Event/EventHandler.h"
#include "Action/Action.h"
#include "Action/ActionTeleport.h"
#include "Action/EventAction.h"

View file

@ -16,12 +16,7 @@
#include "Action/EventAction.h"
#include "Action/EventItemAction.h"
#include "Event/EventHandler.h"
#include "Zone/Zone.h"
#include "Player.h"
#include "Forwards.h"
#include "ServerZone.h"
#include "Framework.h"

View file

@ -8,8 +8,6 @@
#include "Network/PacketWrappers/QuestMessagePacket.h"
#include "Session.h"
#include "Inventory/Inventory.h"
#include "Player.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -1,6 +1,4 @@
#include <set>
#include <stdio.h>
#include <time.h>
#include <Common.h>
#include <Network/GamePacket.h>
@ -19,11 +17,7 @@
#include "Zone/TerritoryMgr.h"
#include "Zone/Zone.h"
#include "Inventory/Inventory.h"
#include "Player.h"
#include "ServerZone.h"
#include "Forwards.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -6,7 +6,6 @@
#include <Common.h>
#include <Version.h>
#include <Network/GamePacketNew.h>
#include <Network/CommonNetwork.h>
#include <Util/UtilMath.h>
#include <Network/PacketContainer.h>
#include <Logging/Logger.h>
@ -25,7 +24,6 @@
#include "Script/ScriptMgr.h"
#include "Script/NativeScriptMgr.h"
#include "Actor/Player.h"
#include "Actor/EventObject.h"
#include "Zone/Zone.h"
@ -34,7 +32,6 @@
#include "ServerZone.h"
#include "StatusEffect/StatusEffect.h"
#include "Session.h"
#include "Framework.h"

View file

@ -1,7 +1,7 @@
#ifndef _EVENT_H
#define _EVENT_H
#include "../Forwards.h"
#include "Forwards.h"
namespace Core {
namespace Event {

View file

@ -1,10 +1,12 @@
#include <Common.h>
#include <Exd/ExdDataGenerated.h>
#include <boost/range/algorithm/remove_if.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "Framework.h"
#include "EventHelper.h"
#include "EventHandler.h"
#include <boost/range/algorithm/remove_if.hpp>
#include <boost/algorithm/string/classification.hpp>
extern Core::Framework g_fw;

View file

@ -2,7 +2,7 @@
#define INVENTORY_H_
#include <map>
#include <Common.h>
#include "../Forwards.h"
#include "Forwards.h"
namespace Core
{

View file

@ -5,7 +5,7 @@
#include <Common.h>
#include "../Forwards.h"
#include "Forwards.h"
namespace Core
{

View file

@ -8,6 +8,7 @@
#include <Network/Acceptor.h>
#include <Network/PacketContainer.h>
#include <Network/GamePacketParser.h>
#include <Network/GamePacket.h>
#include "Zone/Zone.h"
@ -15,8 +16,6 @@
#include "DebugCommand/DebugCommandHandler.h"
#include "Actor/Player.h"
#include "GameConnection.h"
#include "ServerZone.h"
#include "Session.h"

View file

@ -4,7 +4,7 @@
#include <Network/Connection.h>
#include <Network/CommonNetwork.h>
#include <Network/GamePacket.h>
//#include <Network/GamePacket.h>
#include <Util/LockedQueue.h>
#include "Forwards.h"
@ -13,7 +13,9 @@
namespace Core {
namespace Network {
namespace Packets {
class GamePacket;
}
enum ConnectionType : uint8_t
{
Zone = 1,

View file

@ -25,10 +25,6 @@
#include "DebugCommand/DebugCommandHandler.h"
#include "Actor/Player.h"
#include "Inventory/Inventory.h"
#include "Event/EventHelper.h"
#include "Action/Action.h"

View file

@ -15,9 +15,6 @@
#include "Network/PacketWrappers/ActorControlPacket144.h"
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
#include "Actor/Player.h"
#include "Forwards.h"
#include "Framework.h"
#include "Session.h"

View file

@ -19,14 +19,12 @@
#include "Script/ScriptMgr.h"
#include "Actor/Player.h"
#include "Event/EventHelper.h"
#include "Zone/InstanceContent.h"
#include "Session.h"
#include "Forwards.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -15,7 +15,6 @@
#include "Zone/TerritoryMgr.h"
#include "Zone/Zone.h"
#include "Zone/InstanceContent.h"
#include "Zone/ZonePosition.h"
#include "Network/PacketWrappers/InitUIPacket.h"
#include "Network/PacketWrappers/PingPacket.h"
@ -29,15 +28,7 @@
#include "Network/PacketWrappers/EventFinishPacket.h"
#include "Network/PacketWrappers/PlayerStateFlagsPacket.h"
#include "DebugCommand/DebugCommandHandler.h"
#include "Event/EventHelper.h"
#include "Action/Action.h"
#include "Action/ActionTeleport.h"
#include "ServerZone.h"
#include "Forwards.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -17,11 +17,10 @@
#include "DebugCommand/DebugCommandHandler.h"
#include "Actor/Player.h"
#include "Inventory/Inventory.h"
#include "Session.h"
#include "ServerZone.h"
#include "Forwards.h"
#include "Framework.h"
extern Core::Framework g_fw;

View file

@ -7,10 +7,7 @@
#include <Network/PacketContainer.h>
#include <Network/PacketDef/Chat/ServerChatDef.h>
#include <Database/DatabaseDef.h>
#include <Database/DbWorkerPool.h>
#include <Database/CharaDbConnection.h>
#include <boost/format.hpp>
#include <unordered_map>
#include "Network/GameConnection.h"
@ -32,10 +29,6 @@
#include "DebugCommand/DebugCommandHandler.h"
#include "Actor/Player.h"
#include "Inventory/Inventory.h"
#include "Event/EventHelper.h"
#include "Action/Action.h"

View file

@ -18,8 +18,6 @@
#include "DebugCommand/DebugCommandHandler.h"
#include "Actor/Player.h"
#include "Action/Action.h"
#include "Action/ActionCast.h"
#include "Action/ActionMount.h"
@ -27,7 +25,6 @@
#include "Script/ScriptMgr.h"
#include "Session.h"
#include "Forwards.h"
#include "Framework.h"
extern Core::Framework g_fw;