2010-07-26 11:58:49 +02:00
|
|
|
#ifndef GAME_MWMECHANICS_MECHANICSMANAGER_H
|
|
|
|
#define GAME_MWMECHANICS_MECHANICSMANAGER_H
|
2010-07-26 11:15:38 +02:00
|
|
|
|
2010-07-27 14:05:05 +02:00
|
|
|
#include <set>
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2010-07-26 11:15:38 +02:00
|
|
|
namespace ESMS
|
|
|
|
{
|
|
|
|
class ESMStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
class MechanicsManager
|
|
|
|
{
|
2010-07-27 14:05:05 +02:00
|
|
|
const ESMS::ESMStore& mStore;
|
|
|
|
MWGui::WindowManager& mWindowManager;
|
|
|
|
std::set<MWWorld::Ptr> mActors;
|
2010-07-26 11:15:38 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
MechanicsManager (const ESMS::ESMStore& store, MWGui::WindowManager& windowManager);
|
|
|
|
|
|
|
|
void configureGUI();
|
2010-07-27 14:05:05 +02:00
|
|
|
|
|
|
|
void addActor (const MWWorld::Ptr& ptr);
|
|
|
|
///< Register an actor for stats management
|
|
|
|
|
|
|
|
void dropActors (const MWWorld::Ptr::CellStore *cellStore);
|
|
|
|
///< Deregister all actors in the given cell.
|
2010-07-26 11:15:38 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|