1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:19:56 +00:00
openmw-tes3mp/apps/openmw/mwmp/Cell.hpp
2017-04-23 14:01:13 +03:00

51 lines
1.4 KiB
C++

#ifndef OPENMW_MPCELL_HPP
#define OPENMW_MPCELL_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(bool forceUpdate);
void updateDedicated(float dt);
void readPositions(ActorList& actorList);
void readAnimFlags(ActorList& actorList);
void readAnimPlay(ActorList& actorList);
void readStatsDynamic(ActorList& actorList);
void readSpeech(ActorList& actorList);
void readAttack(ActorList& actorList);
void readCellChange(ActorList& actorList);
void initializeLocalActor(const MWWorld::Ptr& ptr);
void initializeLocalActors();
void initializeDedicatedActor(const MWWorld::Ptr& ptr);
void initializeDedicatedActors(ActorList& actorList);
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, LocalActor *> localActors;
std::map<std::string, DedicatedActor *> dedicatedActors;
};
}
#endif //OPENMW_MPCELL_HPP