2017-04-05 09:00:21 +00:00
|
|
|
#ifndef OPENMW_CELLCONTROLLER_HPP
|
|
|
|
#define OPENMW_CELLCONTROLLER_HPP
|
2016-11-15 16:42:52 +00:00
|
|
|
|
2017-04-06 01:00:50 +00:00
|
|
|
#include "Cell.hpp"
|
2017-04-05 21:49:20 +00:00
|
|
|
#include "LocalActor.hpp"
|
|
|
|
#include "DedicatedActor.hpp"
|
2016-12-16 09:27:19 +00:00
|
|
|
#include "../mwworld/cellstore.hpp"
|
|
|
|
|
2016-11-15 16:42:52 +00:00
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-04-05 09:00:21 +00:00
|
|
|
class CellController
|
2016-11-15 16:42:52 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2017-04-05 09:00:21 +00:00
|
|
|
CellController();
|
|
|
|
~CellController();
|
2016-11-15 17:13:36 +00:00
|
|
|
|
2017-04-05 21:49:20 +00:00
|
|
|
void update();
|
2017-04-06 01:00:50 +00:00
|
|
|
void initializeCell(const ESM::Cell& cell);
|
2017-04-05 21:49:20 +00:00
|
|
|
|
2017-02-26 23:02:59 +00:00
|
|
|
int getCellSize() const;
|
|
|
|
virtual MWWorld::CellStore *getCell(const ESM::Cell& cell);
|
|
|
|
|
2016-12-16 09:27:19 +00:00
|
|
|
void openContainer(const MWWorld::Ptr& container, bool loot);
|
|
|
|
void closeContainer(const MWWorld::Ptr& container);
|
2017-04-05 21:49:20 +00:00
|
|
|
|
|
|
|
private:
|
2017-04-06 01:00:50 +00:00
|
|
|
static std::deque<mwmp::Cell *> cellsActive;
|
2016-11-15 16:42:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-04-05 09:00:21 +00:00
|
|
|
#endif //OPENMW_CELLCONTROLLER_HPP
|