openmw-tes3coop/apps/openmw/mwmp/Cell.hpp
2017-04-09 16:32:44 +03:00

40 lines
973 B
C++

#ifndef OPENMW_CELL_HPP
#define OPENMW_CELL_HPP
#include "ActorList.hpp"
#include "LocalActor.hpp"
#include "DedicatedActor.hpp"
#include "../mwworld/cellstore.hpp"
namespace mwmp
{
class Cell
{
public:
Cell(MWWorld::CellStore* cellStore);
~Cell();
void updateLocal();
void updateDedicated(float dt);
void readCellFrame(mwmp::ActorList& actorList);
void initializeLocalActors();
void uninitializeLocalActors();
void uninitializeDedicatedActors();
virtual LocalActor *getLocalActor(std::string actorIndex);
virtual DedicatedActor *getDedicatedActor(std::string actorIndex);
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