Cleanup of #include statements

coverity_scan^2
Allofich 9 years ago
parent 17a54b2a97
commit b1be3596dc

@ -1,7 +1,6 @@
#include "activespells.hpp"
#include <components/misc/rng.hpp>
#include <components/misc/stringops.hpp>
#include <components/esm/loadmgef.hpp>

@ -5,13 +5,13 @@
#include <vector>
#include <string>
#include <components/esm/defs.hpp>
#include <components/esm/activespells.hpp>
#include "../mwworld/timestamp.hpp"
#include "magiceffects.hpp"
#include <components/esm/defs.hpp>
#include <components/esm/activespells.hpp>
namespace MWMechanics
{
/// \brief Lasting spell effects

@ -6,6 +6,7 @@
#include <components/esm/esmreader.hpp>
#include <components/esm/esmwriter.hpp>
#include <components/esm/loadnpc.hpp>
#include <components/sceneutil/positionattitudetransform.hpp>
#include "../mwworld/esmstore.hpp"
@ -22,8 +23,7 @@
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/statemanager.hpp"
#include "../mwmechanics/spellcasting.hpp"
#include "spellcasting.hpp"
#include "npcstats.hpp"
#include "creaturestats.hpp"
#include "movement.hpp"

@ -7,9 +7,10 @@
#include <map>
#include <list>
#include "movement.hpp"
#include "../mwbase/world.hpp"
#include "movement.hpp"
namespace MWWorld
{
class Ptr;

@ -5,10 +5,9 @@
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwmechanics/creaturestats.hpp"
#include "../mwworld/class.hpp"
#include "creaturestats.hpp"
#include "steering.hpp"
#include "movement.hpp"

@ -2,6 +2,7 @@
#define GAME_MWMECHANICS_AIACTIVATE_H
#include "aipackage.hpp"
#include <string>
#include "pathfinding.hpp"

@ -3,12 +3,12 @@
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwworld/class.hpp"
#include "creaturestats.hpp"
#include "movement.hpp"
#include "actorutil.hpp"
#include "steering.hpp"
MWMechanics::AiAvoidDoor::AiAvoidDoor(const MWWorld::ConstPtr& doorPtr)

@ -2,11 +2,15 @@
#define GAME_MWMECHANICS_AIAVOIDDOOR_H
#include "aipackage.hpp"
#include <string>
#include "pathfinding.hpp"
#include <components/esm/defs.hpp>
#include "../mwworld/class.hpp"
#include "pathfinding.hpp"
namespace MWMechanics
{
/// \brief AiPackage to have an actor avoid an opening door

@ -16,7 +16,6 @@
#include "steering.hpp"
#include "movement.hpp"
#include "character.hpp"
#include "aicombataction.hpp"
#include "combat.hpp"

@ -3,16 +3,15 @@
#include "aipackage.hpp"
#include "pathfinding.hpp"
#include "movement.hpp"
#include "obstacle.hpp"
#include <boost/shared_ptr.hpp>
#include "../mwworld/cellstore.hpp" // for Doors
#include "../mwbase/world.hpp"
#include <boost/shared_ptr.hpp>
#include "pathfinding.hpp"
#include "movement.hpp"
#include "obstacle.hpp"
namespace ESM
{

@ -1,5 +1,8 @@
#include "aicombataction.hpp"
#include <components/esm/loadench.hpp>
#include <components/esm/loadmgef.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
@ -8,11 +11,8 @@
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/actionequip.hpp"
#include "../mwmechanics/npcstats.hpp"
#include "../mwmechanics/spellcasting.hpp"
#include <components/esm/loadench.hpp>
#include <components/esm/loadmgef.hpp>
#include "npcstats.hpp"
#include "spellcasting.hpp"
namespace
{

@ -3,11 +3,11 @@
#include <boost/shared_ptr.hpp>
#include <components/esm/loadspel.hpp>
#include "../mwworld/ptr.hpp"
#include "../mwworld/containerstore.hpp"
#include <components/esm/loadspel.hpp>
namespace MWMechanics
{

@ -10,8 +10,7 @@
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
#include "../mwmechanics/creaturestats.hpp"
#include "creaturestats.hpp"
#include "steering.hpp"
#include "movement.hpp"

@ -2,6 +2,7 @@
#define GAME_MWMECHANICS_AIESCORT_H
#include "aipackage.hpp"
#include <string>
#include "pathfinding.hpp"

@ -6,11 +6,12 @@
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
#include "creaturestats.hpp"
#include "movement.hpp"
#include "steering.hpp"
namespace MWMechanics

@ -2,10 +2,13 @@
#define GAME_MWMECHANICS_AIFOLLOW_H
#include "aipackage.hpp"
#include <string>
#include "pathfinding.hpp"
#include <components/esm/defs.hpp>
#include "pathfinding.hpp"
namespace ESM
{
namespace AiSequence

@ -8,12 +8,13 @@
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwworld/action.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
#include "creaturestats.hpp"
#include "movement.hpp"
#include "../mwworld/action.hpp"
#include "steering.hpp"
#include "actorutil.hpp"
#include "coordinateconverter.hpp"

@ -1,9 +1,9 @@
#ifndef GAME_MWMECHANICS_AIPACKAGE_H
#define GAME_MWMECHANICS_AIPACKAGE_H
#include "pathfinding.hpp"
#include <components/esm/defs.hpp>
#include "pathfinding.hpp"
#include "obstacle.hpp"
#include "aistate.hpp"

@ -8,8 +8,6 @@
#include "../mwworld/class.hpp"
#include "../mwworld/action.hpp"
#include "../mwmechanics/creaturestats.hpp"
#include "movement.hpp"
#include "creaturestats.hpp"

@ -2,9 +2,13 @@
#include <limits>
#include <components/esm/aisequence.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "aipackage.hpp"
#include "aistate.hpp"
#include "aiwander.hpp"
#include "aiescort.hpp"
#include "aitravel.hpp"
@ -14,11 +18,6 @@
#include "aipursue.hpp"
#include "actorutil.hpp"
#include <components/esm/aisequence.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
namespace MWMechanics
{

@ -4,7 +4,6 @@
#include <list>
#include <components/esm/loadnpc.hpp>
//#include "aistate.hpp"
namespace MWWorld
{

@ -5,11 +5,10 @@
#include <vector>
#include "pathfinding.hpp"
#include "obstacle.hpp"
#include "../mwworld/timestamp.hpp"
#include "pathfinding.hpp"
#include "obstacle.hpp"
#include "aistate.hpp"
namespace ESM

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

@ -21,13 +21,6 @@
#include <iostream>
#include "movement.hpp"
#include "npcstats.hpp"
#include "creaturestats.hpp"
#include "security.hpp"
#include "actorutil.hpp"
#include <components/misc/rng.hpp>
#include <components/settings/settings.hpp>
@ -46,6 +39,12 @@
#include "../mwworld/esmstore.hpp"
#include "../mwworld/player.hpp"
#include "movement.hpp"
#include "npcstats.hpp"
#include "creaturestats.hpp"
#include "security.hpp"
#include "actorutil.hpp"
namespace
{

@ -8,17 +8,16 @@
#include "../mwbase/world.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/soundmanager.hpp"
#include "../mwmechanics/npcstats.hpp"
#include "../mwmechanics/movement.hpp"
#include "../mwmechanics/spellcasting.hpp"
#include "../mwmechanics/difficultyscaling.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwbase/windowmanager.hpp"
#include "npcstats.hpp"
#include "movement.hpp"
#include "spellcasting.hpp"
#include "difficultyscaling.hpp"
#include "actorutil.hpp"
namespace

@ -1,11 +1,11 @@
#include "difficultyscaling.hpp"
#include <components/settings/settings.hpp>
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwworld/esmstore.hpp"
#include <components/settings/settings.hpp>
#include "actorutil.hpp"
float scaleDamage(float damage, const MWWorld::Ptr& attacker, const MWWorld::Ptr& victim)

@ -6,14 +6,15 @@
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/ptr.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/esmstore.hpp"
#include "spells.hpp"
#include "creaturestats.hpp"
#include "actorutil.hpp"
namespace MWMechanics
{

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

@ -1,10 +1,15 @@
#ifndef GAME_MWMECHANICS_ENCHANTING_H
#define GAME_MWMECHANICS_ENCHANTING_H
#include <string>
#include "../mwworld/ptr.hpp"
#include <components/esm/effectlist.hpp>
#include "../mwworld/ptr.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
namespace MWMechanics
{
class Enchanting

@ -1,16 +1,18 @@
#ifndef OPENMW_MECHANICS_LEVELLEDLIST_H
#define OPENMW_MECHANICS_LEVELLEDLIST_H
#include <components/misc/rng.hpp>
#include <iostream>
#include <components/misc/rng.hpp>
#include "../mwworld/ptr.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/manualref.hpp"
#include "../mwworld/class.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "creaturestats.hpp"
#include "actorutil.hpp"

@ -11,18 +11,16 @@
#include "../mwworld/esmstore.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/player.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/windowmanager.hpp"
#include "../mwbase/dialoguemanager.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/player.hpp"
#include "../mwmechanics/aicombat.hpp"
#include "../mwmechanics/aipursue.hpp"
#include "aicombat.hpp"
#include "aipursue.hpp"
#include "spellcasting.hpp"
#include "autocalcspell.hpp"
#include "npcstats.hpp"

@ -2,11 +2,11 @@
#include <iostream>
#include "movement.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "movement.hpp"
namespace MWMechanics
{

@ -1,4 +1,5 @@
#include "pathfinding.hpp"
#include <limits>
#include "../mwbase/world.hpp"
@ -6,6 +7,7 @@
#include "../mwworld/esmstore.hpp"
#include "../mwworld/cellstore.hpp"
#include "coordinateconverter.hpp"
namespace

@ -1,11 +1,12 @@
#ifndef GAME_MWMECHANICS_PATHFINDING_H
#define GAME_MWMECHANICS_PATHFINDING_H
#include <components/esm/defs.hpp>
#include <components/esm/loadpgrd.hpp>
#include <list>
#include <cassert>
#include <components/esm/defs.hpp>
#include <components/esm/loadpgrd.hpp>
namespace MWWorld
{
class CellStore;

@ -1,9 +1,10 @@
#ifndef GAME_MWMECHANICS_PATHGRID_H
#define GAME_MWMECHANICS_PATHGRID_H
#include <components/esm/loadpgrd.hpp>
#include <list>
#include <components/esm/loadpgrd.hpp>
namespace ESM
{
struct Cell;

@ -19,7 +19,6 @@
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwrender/animation.hpp"

@ -1,10 +1,10 @@
#ifndef MWMECHANICS_SPELLSUCCESS_H
#define MWMECHANICS_SPELLSUCCESS_H
#include "../mwworld/ptr.hpp"
#include <components/esm/loadskil.hpp>
#include "../mwworld/ptr.hpp"
namespace ESM
{
struct Spell;

@ -6,8 +6,6 @@
#include "../mwbase/world.hpp"
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwmechanics/spellcasting.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/manualref.hpp"
@ -15,10 +13,10 @@
#include "../mwrender/animation.hpp"
#include "spellcasting.hpp"
#include "creaturestats.hpp"
#include "aifollow.hpp"
namespace MWMechanics
{

@ -3,9 +3,10 @@
#include <set>
#include "magiceffects.hpp"
#include "../mwworld/ptr.hpp"
#include "magiceffects.hpp"
namespace MWMechanics
{

@ -6,11 +6,11 @@
#include "../mwbase/mechanicsmanager.hpp"
#include "../mwbase/world.hpp"
#include "../mwmechanics/creaturestats.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/esmstore.hpp"
#include "creaturestats.hpp"
namespace MWMechanics
{
Trading::Trading() {}

Loading…
Cancel
Save