2017-04-06 01:00:50 +00:00
|
|
|
#ifndef OPENMW_CELL_HPP
|
|
|
|
#define OPENMW_CELL_HPP
|
|
|
|
|
2017-04-06 08:46:56 +00:00
|
|
|
#include "WorldEvent.hpp"
|
2017-04-06 01:00:50 +00:00
|
|
|
#include "LocalActor.hpp"
|
|
|
|
#include "DedicatedActor.hpp"
|
|
|
|
#include "../mwworld/cellstore.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class Cell
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
Cell(MWWorld::CellStore* cellStore);
|
|
|
|
~Cell();
|
|
|
|
|
2017-04-06 08:46:56 +00:00
|
|
|
void updateLocal();
|
2017-04-07 12:51:34 +00:00
|
|
|
void updateDedicated(float dt);
|
2017-04-08 04:46:33 +00:00
|
|
|
|
2017-04-06 01:00:50 +00:00
|
|
|
void initializeLocalActors();
|
2017-04-06 01:59:55 +00:00
|
|
|
void uninitializeLocalActors();
|
2017-04-08 04:46:33 +00:00
|
|
|
void uninitializeDedicatedActors();
|
|
|
|
|
2017-04-06 08:46:56 +00:00
|
|
|
void readCellFrame(mwmp::WorldEvent& worldEvent);
|
2017-04-06 01:00:50 +00:00
|
|
|
|
2017-04-07 07:16:23 +00:00
|
|
|
virtual LocalActor *getLocalActor(std::string actorIndex);
|
2017-04-08 04:46:33 +00:00
|
|
|
virtual DedicatedActor *getDedicatedActor(std::string actorIndex);
|
2017-04-07 07:16:23 +00:00
|
|
|
|
2017-04-06 01:00:50 +00:00
|
|
|
MWWorld::CellStore* getCellStore();
|
|
|
|
std::string getDescription();
|
|
|
|
|
|
|
|
private:
|
|
|
|
MWWorld::CellStore* store;
|
|
|
|
std::map<std::string, mwmp::LocalActor *> localActors;
|
|
|
|
std::map<std::string, mwmp::DedicatedActor *> dedicatedActors;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_CELL_HPP
|