From 07d75abdf84894a8d6c5dcd6a7a73e3d73160494 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 23 Nov 2017 08:11:37 +0200 Subject: [PATCH] [Server] Use consistent order for includes --- apps/openmw-mp/Actors.cpp | 4 +++- apps/openmw-mp/Books.cpp | 7 +++--- apps/openmw-mp/Cell.cpp | 8 +++---- apps/openmw-mp/CellController.cpp | 7 +++--- apps/openmw-mp/CellState.cpp | 4 ++-- apps/openmw-mp/Cells.cpp | 7 +++--- apps/openmw-mp/CharClass.cpp | 9 ++++---- apps/openmw-mp/Dialogue.cpp | 7 +++--- apps/openmw-mp/Factions.cpp | 5 +++-- apps/openmw-mp/GUI.cpp | 4 +++- apps/openmw-mp/Inventory.cpp | 11 ++++++---- apps/openmw-mp/MasterClient.cpp | 12 ++++++---- apps/openmw-mp/NetActor.cpp | 8 +++---- apps/openmw-mp/Networking.cpp | 25 ++++++++++----------- apps/openmw-mp/Object.cpp | 4 +++- apps/openmw-mp/Player.cpp | 5 ++++- apps/openmw-mp/Quests.cpp | 7 +++--- apps/openmw-mp/Script/LuaState.cpp | 35 +++++++++++++++++------------- apps/openmw-mp/Settings.cpp | 5 +++-- apps/openmw-mp/Spells.cpp | 7 +++--- apps/openmw-mp/Timer.cpp | 3 ++- 21 files changed, 107 insertions(+), 77 deletions(-) diff --git a/apps/openmw-mp/Actors.cpp b/apps/openmw-mp/Actors.cpp index b2c501c51..c97db425e 100644 --- a/apps/openmw-mp/Actors.cpp +++ b/apps/openmw-mp/Actors.cpp @@ -3,9 +3,11 @@ // #include -#include "Actors.hpp" + #include "Script/LuaState.hpp" #include "Networking.hpp" + +#include "Actors.hpp" #include "Cell.hpp" #include "CellController.hpp" #include "Player.hpp" diff --git a/apps/openmw-mp/Books.cpp b/apps/openmw-mp/Books.cpp index 55c42842d..e49024d7a 100644 --- a/apps/openmw-mp/Books.cpp +++ b/apps/openmw-mp/Books.cpp @@ -2,13 +2,14 @@ // Created by koncord on 15.08.17. // -#include "Books.hpp" - #include + #include "Script/LuaState.hpp" -#include "Player.hpp" #include "Networking.hpp" +#include "Books.hpp" +#include "Player.hpp" + void Books::Init(LuaState &lua) { lua.getState()->new_usertype("Books", diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index a804fd8a4..e74e4aa03 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -2,15 +2,15 @@ // Created by koncord on 18.02.17. // -#include "Cell.hpp" - +#include #include -#include #include "Script/EventController.hpp" -#include "Player.hpp" #include "Networking.hpp" +#include "Cell.hpp" +#include "Player.hpp" + using namespace std; Cell::Cell(ESM::Cell cell) : cell(cell) diff --git a/apps/openmw-mp/CellController.cpp b/apps/openmw-mp/CellController.cpp index b6b5e97d4..61a124c8d 100644 --- a/apps/openmw-mp/CellController.cpp +++ b/apps/openmw-mp/CellController.cpp @@ -1,10 +1,11 @@ -#include "CellController.hpp" - #include + #include +#include "Networking.hpp" + +#include "CellController.hpp" #include "Cell.hpp" #include "Player.hpp" -#include "Networking.hpp" using namespace std; diff --git a/apps/openmw-mp/CellState.cpp b/apps/openmw-mp/CellState.cpp index 4d37eef7b..e1693c4bd 100644 --- a/apps/openmw-mp/CellState.cpp +++ b/apps/openmw-mp/CellState.cpp @@ -2,10 +2,10 @@ // Created by koncord on 25.08.17. // -#include "CellState.hpp" - #include "Script/LuaState.hpp" +#include "CellState.hpp" + void CellState::Init(LuaState &lua) { lua.getState()->new_usertype("CellState", diff --git a/apps/openmw-mp/Cells.cpp b/apps/openmw-mp/Cells.cpp index c517b0e0d..9b295990a 100644 --- a/apps/openmw-mp/Cells.cpp +++ b/apps/openmw-mp/Cells.cpp @@ -2,13 +2,14 @@ // Created by koncord on 25.08.17. // -#include "Cells.hpp" - #include + #include "Script/LuaState.hpp" -#include "NetActor.hpp" #include "Networking.hpp" +#include "Cells.hpp" +#include "NetActor.hpp" + using namespace std; void Cells::Init(LuaState &lua) diff --git a/apps/openmw-mp/CharClass.cpp b/apps/openmw-mp/CharClass.cpp index 12d3c0345..739468cc3 100644 --- a/apps/openmw-mp/CharClass.cpp +++ b/apps/openmw-mp/CharClass.cpp @@ -2,13 +2,14 @@ // Created by koncord on 12.08.17. // -#include "CharClass.hpp" - #include -#include -#include "Player.hpp" + +#include "Script/LuaState.hpp" #include "Networking.hpp" +#include "CharClass.hpp" +#include "Player.hpp" + using namespace std; void CharClass::Init(LuaState &lua) diff --git a/apps/openmw-mp/Dialogue.cpp b/apps/openmw-mp/Dialogue.cpp index af9a85c77..98c142043 100644 --- a/apps/openmw-mp/Dialogue.cpp +++ b/apps/openmw-mp/Dialogue.cpp @@ -2,13 +2,14 @@ // Created by koncord on 15.08.17. // -#include "Dialogue.hpp" - #include + #include "Script/LuaState.hpp" -#include "Player.hpp" #include "Networking.hpp" +#include "Dialogue.hpp" +#include "Player.hpp" + void Dialogue::Init(LuaState &lua) { lua.getState()->new_usertype("Dialogue", diff --git a/apps/openmw-mp/Factions.cpp b/apps/openmw-mp/Factions.cpp index 9c615a036..a3e40915d 100644 --- a/apps/openmw-mp/Factions.cpp +++ b/apps/openmw-mp/Factions.cpp @@ -3,12 +3,13 @@ // #include -#include "Factions.hpp" -#include "Player.hpp" #include "Script/LuaState.hpp" #include "Networking.hpp" +#include "Factions.hpp" +#include "Player.hpp" + void Factions::Init(LuaState &lua) { lua.getState()->new_usertype("Factions", diff --git a/apps/openmw-mp/GUI.cpp b/apps/openmw-mp/GUI.cpp index 6bbdf3492..6182fa37e 100644 --- a/apps/openmw-mp/GUI.cpp +++ b/apps/openmw-mp/GUI.cpp @@ -3,9 +3,11 @@ // #include + +#include "Networking.hpp" + #include "GUI.hpp" #include "Player.hpp" -#include "Networking.hpp" void GUI::Init(LuaState &lua) { diff --git a/apps/openmw-mp/Inventory.cpp b/apps/openmw-mp/Inventory.cpp index b1f5adefe..ca443ec17 100644 --- a/apps/openmw-mp/Inventory.cpp +++ b/apps/openmw-mp/Inventory.cpp @@ -2,14 +2,17 @@ // Created by koncord on 12.08.17. // -#include "Inventory.hpp" +#include #include -#include + #include -#include -#include "NetActor.hpp" + +#include "Script/LuaState.hpp" #include "Networking.hpp" +#include "Inventory.hpp" +#include "NetActor.hpp" + using namespace std; void Inventory::Init(LuaState &lua) diff --git a/apps/openmw-mp/MasterClient.cpp b/apps/openmw-mp/MasterClient.cpp index a352295ea..620e4d8f9 100644 --- a/apps/openmw-mp/MasterClient.cpp +++ b/apps/openmw-mp/MasterClient.cpp @@ -2,17 +2,21 @@ // Created by koncord on 14.08.16. // -#include -#include -#include #include +#include #include + +#include #include -#include "MasterClient.hpp" +#include + #include #include #include + +#include "MasterClient.hpp" #include "Networking.hpp" + #include "Players.hpp" using namespace std; diff --git a/apps/openmw-mp/NetActor.cpp b/apps/openmw-mp/NetActor.cpp index dffc2fc85..9908c09b3 100644 --- a/apps/openmw-mp/NetActor.cpp +++ b/apps/openmw-mp/NetActor.cpp @@ -2,13 +2,13 @@ // Created by koncord on 25.08.17. // -#include "NetActor.hpp" - #include +#include + #include "Script/LuaState.hpp" -//#include "Player.hpp" #include "Networking.hpp" -#include + +#include "NetActor.hpp" using namespace std; diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 48780770f..704584ac3 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -2,11 +2,12 @@ // Created by koncord on 12.01.16. // -#include "Players.hpp" -#include