Merge pull request #2175 from Capostrophic/includes

Include cleanup
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit 55fc04e462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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

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

@ -5,10 +5,23 @@
#include <vector>
#include <string>
#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
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,9 +1,17 @@
#ifndef 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
{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save