general cleanup

This commit is contained in:
Marc Zinnschlag 2012-01-27 15:11:02 +01:00
parent c081160591
commit 8de6761a79
31 changed files with 33 additions and 37 deletions

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_APPARATUS_H #define GAME_MWCLASS_APPARATUS_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_ARMOR_H #define GAME_MWCLASS_ARMOR_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_BOOK_H #define GAME_MWCLASS_BOOK_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_CLOTHING_H #define GAME_MWCLASS_CLOTHING_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -9,6 +9,8 @@
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/customdata.hpp" #include "../mwworld/customdata.hpp"
#include "../mwrender/objects.hpp"
namespace namespace
{ {
struct CustomData : public MWWorld::CustomData struct CustomData : public MWWorld::CustomData

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_CONTAINER_H #define GAME_MWCLASS_CONTAINER_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -14,8 +14,6 @@
#include "../mwrender/objects.hpp" #include "../mwrender/objects.hpp"
#include <iostream>
namespace MWClass namespace MWClass
{ {
void Door::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const void Door::insertObjectRendering (const MWWorld::Ptr& ptr, MWRender::RenderingInterface& renderingInterface) const
@ -39,13 +37,11 @@ namespace MWClass
ESMS::LiveCellRef<ESM::Door, MWWorld::RefData> *ref = ESMS::LiveCellRef<ESM::Door, MWWorld::RefData> *ref =
ptr.get<ESM::Door>(); ptr.get<ESM::Door>();
const std::string &model = ref->base->model; const std::string &model = ref->base->model;
assert (ref->base != NULL); assert (ref->base != NULL);
if(!model.empty()){ if(!model.empty()){
physics.insertObjectPhysics(ptr, "meshes\\" + model); physics.insertObjectPhysics(ptr, "meshes\\" + model);
} }
} }
std::string Door::getName (const MWWorld::Ptr& ptr) const std::string Door::getName (const MWWorld::Ptr& ptr) const
@ -86,7 +82,7 @@ namespace MWClass
} }
else else
{ {
// another NPC or a create is using the door // another NPC or a creature is using the door
// TODO return action for teleporting other NPC/creature // TODO return action for teleporting other NPC/creature
return boost::shared_ptr<MWWorld::Action> (new MWWorld::NullAction); return boost::shared_ptr<MWWorld::Action> (new MWWorld::NullAction);
} }

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_DOOR_H #define GAME_MWCLASS_DOOR_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"
@ -34,14 +35,11 @@ namespace MWClass
ESMS::LiveCellRef<ESM::Ingredient, MWWorld::RefData> *ref = ESMS::LiveCellRef<ESM::Ingredient, MWWorld::RefData> *ref =
ptr.get<ESM::Ingredient>(); ptr.get<ESM::Ingredient>();
const std::string &model = ref->base->model; const std::string &model = ref->base->model;
assert (ref->base != NULL); assert (ref->base != NULL);
if(!model.empty()){ if(!model.empty()){
physics.insertObjectPhysics(ptr, "meshes\\" + model); physics.insertObjectPhysics(ptr, "meshes\\" + model);
} }
} }
std::string Ingredient::getName (const MWWorld::Ptr& ptr) const std::string Ingredient::getName (const MWWorld::Ptr& ptr) const

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_INGREDIENT_H #define GAME_MWCLASS_INGREDIENT_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -12,6 +12,8 @@
#include "../mwsound/soundmanager.hpp" #include "../mwsound/soundmanager.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"
namespace MWClass namespace MWClass

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_LIGHT_H #define GAME_MWCLASS_LIGHT_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,8 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"
namespace MWClass namespace MWClass

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_LOCKPICK_H #define GAME_MWCLASS_LOCKPICK_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,8 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"
namespace MWClass namespace MWClass

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_MISC_H #define GAME_MWCLASS_MISC_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -17,6 +17,7 @@
#include "../mwworld/environment.hpp" #include "../mwworld/environment.hpp"
#include "../mwworld/world.hpp" #include "../mwworld/world.hpp"
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/customdata.hpp"
namespace namespace
{ {

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_NPC_H #define GAME_MWCLASS_NPC_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwworld/customdata.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_POTION_H #define GAME_MWCLASS_POTION_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -3,7 +3,6 @@
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
namespace MWClass namespace MWClass
{ {
class Probe : public MWWorld::Class class Probe : public MWWorld::Class

View file

@ -8,6 +8,8 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"
namespace MWClass namespace MWClass

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_REPAIR_H #define GAME_MWCLASS_REPAIR_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -5,6 +5,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_STATIC_H #define GAME_MWCLASS_STATIC_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {

View file

@ -8,6 +8,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "../mwworld/actiontake.hpp" #include "../mwworld/actiontake.hpp"
#include "../mwrender/objects.hpp"
#include "containerutil.hpp" #include "containerutil.hpp"

View file

@ -2,7 +2,6 @@
#define GAME_MWCLASS_WEAPON_H #define GAME_MWCLASS_WEAPON_H
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwrender/objects.hpp"
namespace MWClass namespace MWClass
{ {