1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 11:23:51 +00:00

Merge pull request #2175 from Capostrophic/includes

Include cleanup
This commit is contained in:
Bret Curtis 2019-02-22 14:56:20 +01:00 committed by GitHub
commit 55fc04e462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 80 additions and 58 deletions

View file

@ -9,7 +9,10 @@
#include <components/widgets/list.hpp> #include <components/widgets/list.hpp>
#include <components/settings/settings.hpp> #include <components/settings/settings.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/mechanicsmanager.hpp" #include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/esmstore.hpp" #include "../mwworld/esmstore.hpp"

View file

@ -4,7 +4,10 @@
#include "windowbase.hpp" #include "windowbase.hpp"
#include "referenceinterface.hpp" #include "referenceinterface.hpp"
#include "../mwworld/esmstore.hpp" namespace ESM
{
struct Spell;
}
namespace MyGUI namespace MyGUI
{ {
@ -17,7 +20,6 @@ namespace MWGui
class WindowManager; class WindowManager;
} }
namespace MWGui namespace MWGui
{ {
class SpellBuyingWindow : public ReferenceInterface, public WindowBase class SpellBuyingWindow : public ReferenceInterface, public WindowBase

View file

@ -54,6 +54,7 @@
#include "../mwbase/inputmanager.hpp" #include "../mwbase/inputmanager.hpp"
#include "../mwbase/statemanager.hpp" #include "../mwbase/statemanager.hpp"
#include "../mwbase/soundmanager.hpp" #include "../mwbase/soundmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwrender/vismask.hpp" #include "../mwrender/vismask.hpp"

View file

@ -1,10 +1,7 @@
#include "actors.hpp" #include "actors.hpp"
#include <typeinfo>
#include <iostream>
#include <components/esm/esmreader.hpp> #include <components/esm/esmreader.hpp>
#include <components/esm/esmwriter.hpp> #include <components/esm/esmwriter.hpp>
#include <components/esm/loadnpc.hpp>
#include <components/sceneutil/positionattitudetransform.hpp> #include <components/sceneutil/positionattitudetransform.hpp>
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>
@ -509,7 +506,7 @@ namespace MWMechanics
MagicEffects now = creatureStats.getSpells().getMagicEffects(); MagicEffects now = creatureStats.getSpells().getMagicEffects();
if (creature.getTypeName()==typeid (ESM::NPC).name()) if (creature.getClass().isNpc())
{ {
MWWorld::InventoryStore& store = creature.getClass().getInventoryStore (creature); MWWorld::InventoryStore& store = creature.getClass().getInventoryStore (creature);
now += store.getMagicEffects(); now += store.getMagicEffects();
@ -1463,7 +1460,7 @@ namespace MWMechanics
} }
} }
if(iter->first.getTypeName() == typeid(ESM::NPC).name()) if(iter->first.getClass().isNpc())
{ {
updateDrowning(iter->first, duration, ctrl->isKnockedOut(), isPlayer); updateDrowning(iter->first, duration, ctrl->isKnockedOut(), isPlayer);
calculateNpcStatModifiers(iter->first, duration); calculateNpcStatModifiers(iter->first, duration);

View file

@ -5,10 +5,23 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <list> #include <list>
#include <map>
#include "../mwbase/world.hpp" namespace ESM
{
class ESMReader;
class ESMWriter;
}
#include "movement.hpp" namespace osg
{
class Vec3f;
}
namespace Loading
{
class Listener;
}
namespace MWWorld namespace MWWorld
{ {

View file

@ -1,7 +1,10 @@
#ifndef OPENMW_MWMECHANICS_ACTORUTIL_H #ifndef OPENMW_MWMECHANICS_ACTORUTIL_H
#define OPENMW_MWMECHANICS_ACTORUTIL_H #define OPENMW_MWMECHANICS_ACTORUTIL_H
#include "../mwworld/ptr.hpp" namespace MWWorld
{
class Ptr;
}
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -2,6 +2,7 @@
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/mechanicsmanager.hpp" #include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"

View file

@ -1,10 +1,13 @@
#ifndef GAME_MWMECHANICS_AICAST_H #ifndef GAME_MWMECHANICS_AICAST_H
#define GAME_MWMECHANICS_AICAST_H #define GAME_MWMECHANICS_AICAST_H
#include "../mwbase/world.hpp"
#include "aipackage.hpp" #include "aipackage.hpp"
namespace MWWorld
{
class Ptr;
}
namespace MWMechanics namespace MWMechanics
{ {
/// AiPackage which makes an actor to cast given spell. /// AiPackage which makes an actor to cast given spell.

View file

@ -5,8 +5,6 @@
#include <string> #include <string>
#include "pathfinding.hpp"
namespace ESM namespace ESM
{ {
namespace AiSequence namespace AiSequence

View file

@ -1,6 +1,6 @@
#include "aiface.hpp" #include "aiface.hpp"
#include "../mwbase/world.hpp" #include "../mwworld/ptr.hpp"
#include "steering.hpp" #include "steering.hpp"

View file

@ -7,8 +7,6 @@
#include "obstacle.hpp" #include "obstacle.hpp"
#include "aistate.hpp" #include "aistate.hpp"
#include <boost/optional.hpp>
namespace MWWorld namespace MWWorld
{ {
class Ptr; class Ptr;

View file

@ -4,6 +4,7 @@
#include <components/esm/loadmgef.hpp> #include <components/esm/loadmgef.hpp>
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwworld/action.hpp" #include "../mwworld/action.hpp"

View file

@ -3,10 +3,6 @@
#include "aipackage.hpp" #include "aipackage.hpp"
#include "../mwbase/world.hpp"
#include "pathfinding.hpp"
namespace ESM namespace ESM
{ {
namespace AiSequence namespace AiSequence

View file

@ -2,7 +2,6 @@
#define AISTATE_H #define AISTATE_H
#include <typeinfo> #include <typeinfo>
#include <stdexcept>
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -3,8 +3,6 @@
#include "aipackage.hpp" #include "aipackage.hpp"
#include "pathfinding.hpp"
namespace ESM namespace ESM
{ {
namespace AiSequence namespace AiSequence

View file

@ -1,9 +1,14 @@
#ifndef OPENMW_AUTOCALCSPELL_H #ifndef OPENMW_AUTOCALCSPELL_H
#define OPENMW_AUTOCALCSPELL_H #define OPENMW_AUTOCALCSPELL_H
#include <components/esm/loadspel.hpp> #include <string>
#include <components/esm/loadskil.hpp> #include <vector>
#include <components/esm/loadrace.hpp>
namespace ESM
{
struct Spell;
struct Race;
}
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -1,7 +1,15 @@
#ifndef OPENMW_MECHANICS_COMBAT_H #ifndef OPENMW_MECHANICS_COMBAT_H
#define OPENMW_MECHANICS_COMBAT_H #define OPENMW_MECHANICS_COMBAT_H
#include "../mwworld/ptr.hpp" namespace osg
{
class Vec3f;
}
namespace MWWorld
{
class Ptr;
}
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -7,6 +7,8 @@
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/esmstore.hpp" #include "../mwworld/esmstore.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/mechanicsmanager.hpp" #include "../mwbase/mechanicsmanager.hpp"
#include "creaturestats.hpp" #include "creaturestats.hpp"

View file

@ -7,9 +7,6 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
namespace MWMechanics namespace MWMechanics
{ {
class Enchanting class Enchanting

View file

@ -7,6 +7,7 @@
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp" #include "../mwbase/world.hpp"
#include "character.hpp"
#include "movement.hpp" #include "movement.hpp"
namespace MWMechanics namespace MWMechanics

View file

@ -3,8 +3,12 @@
#include <string> #include <string>
#include <map> #include <map>
#include <vector>
#include "character.hpp" namespace osg
{
class Vec3f;
}
namespace MWWorld namespace MWWorld
{ {
@ -14,6 +18,8 @@ namespace MWWorld
namespace MWMechanics namespace MWMechanics
{ {
class CharacterController;
class Objects class Objects
{ {
typedef std::map<MWWorld::Ptr,CharacterController*> PtrControllerMap; typedef std::map<MWWorld::Ptr,CharacterController*> PtrControllerMap;

View file

@ -3,6 +3,7 @@
#include <components/esm/loadench.hpp> #include <components/esm/loadench.hpp>
#include <components/esm/loadmgef.hpp> #include <components/esm/loadmgef.hpp>
#include <components/esm/loadspel.hpp>
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp" #include "../mwbase/world.hpp"

View file

@ -1,9 +1,17 @@
#ifndef OPENMW_SPELL_PRIORITY_H #ifndef OPENMW_SPELL_PRIORITY_H
#define OPENMW_SPELL_PRIORITY_H #define OPENMW_SPELL_PRIORITY_H
#include <components/esm/loadspel.hpp> namespace ESM
{
struct Spell;
struct EffectList;
struct ENAMstruct;
}
#include "../mwworld/ptr.hpp" namespace MWWorld
{
class Ptr;
}
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -1,7 +1,10 @@
#ifndef OPENMW_MECHANICS_TRADING_H #ifndef OPENMW_MECHANICS_TRADING_H
#define OPENMW_MECHANICS_TRADING_H #define OPENMW_MECHANICS_TRADING_H
#include "../mwworld/ptr.hpp" namespace MWWorld
{
class Ptr;
}
namespace MWMechanics namespace MWMechanics
{ {

View file

@ -2,9 +2,7 @@
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/player.hpp"
#include "../mwmechanics/actorutil.hpp" #include "../mwmechanics/actorutil.hpp"
namespace MWWorld namespace MWWorld

View file

@ -4,7 +4,6 @@
#include <string> #include <string>
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -2,9 +2,6 @@
#include <components/esm/loadskil.hpp> #include <components/esm/loadskil.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwmechanics/actorutil.hpp" #include "../mwmechanics/actorutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWWORLD_ACTIONEAT_H #define GAME_MWWORLD_ACTIONEAT_H
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -1,7 +1,6 @@
#include "actionequip.hpp" #include "actionequip.hpp"
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwmechanics/actorutil.hpp" #include "../mwmechanics/actorutil.hpp"

View file

@ -6,9 +6,6 @@
#include "../mwmechanics/disease.hpp" #include "../mwmechanics/disease.hpp"
#include "class.hpp"
#include "containerstore.hpp"
namespace MWWorld namespace MWWorld
{ {
ActionOpen::ActionOpen (const MWWorld::Ptr& container) ActionOpen::ActionOpen (const MWWorld::Ptr& container)

View file

@ -2,8 +2,6 @@
#define GAME_MWWORLD_ACTIONOPEN_H #define GAME_MWWORLD_ACTIONOPEN_H
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -2,7 +2,6 @@
#define GAME_MWWORLD_ACTIONREAD_H #define GAME_MWWORLD_ACTIONREAD_H
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -2,8 +2,7 @@
#include "../mwbase/windowmanager.hpp" #include "../mwbase/windowmanager.hpp"
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/player.hpp"
#include "../mwmechanics/actorutil.hpp" #include "../mwmechanics/actorutil.hpp"
namespace MWWorld namespace MWWorld

View file

@ -2,7 +2,6 @@
#define GAME_MWWORLD_ACTIONSOULGEM_H #define GAME_MWWORLD_ACTIONSOULGEM_H
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -2,7 +2,6 @@
#define GAME_MWWORLD_ACTIONTAKE_H #define GAME_MWWORLD_ACTIONTAKE_H
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -1,7 +1,6 @@
#ifndef GAME_MWWORLD_ACTIONTALK_H #ifndef GAME_MWWORLD_ACTIONTALK_H
#define GAME_MWWORLD_ACTIONTALK_H #define GAME_MWWORLD_ACTIONTALK_H
#include "ptr.hpp"
#include "action.hpp" #include "action.hpp"
namespace MWWorld namespace MWWorld

View file

@ -4,7 +4,6 @@
#include <string> #include <string>
#include "action.hpp" #include "action.hpp"
#include "ptr.hpp"
namespace MWWorld namespace MWWorld
{ {

View file

@ -1,8 +1,6 @@
#ifndef OPENMW_MWWORLD_RECORDCMP_H #ifndef OPENMW_MWWORLD_RECORDCMP_H
#define OPENMW_MWWORLD_RECORDCMP_H #define OPENMW_MWWORLD_RECORDCMP_H
#include <cctype>
#include <components/esm/records.hpp> #include <components/esm/records.hpp>
#include <components/misc/stringops.hpp> #include <components/misc/stringops.hpp>

View file

@ -7,7 +7,6 @@
#include "../mwscript/locals.hpp" #include "../mwscript/locals.hpp"
#include <string> #include <string>
#include <osg/Vec3f>
namespace SceneUtil namespace SceneUtil
{ {