1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:49:55 +00:00

[General] Add simple BaseActor and LocalActor classes

This commit is contained in:
David Cernat 2017-04-05 12:52:27 +03:00
parent 679e790d8d
commit d24cde16dd
5 changed files with 68 additions and 2 deletions

View file

@ -96,7 +96,7 @@ add_openmw_dir (mwbase
inputmanager windowmanager statemanager
)
add_openmw_dir (mwmp DedicatedPlayer WorldEvent LocalPlayer Networking Main GUIChat GUILogin GUIController PlayerMarkerCollection GUIDialogList WorldController)
add_openmw_dir (mwmp Main Networking LocalPlayer DedicatedPlayer WorldEvent LocalActor CellController GUIChat GUILogin GUIController PlayerMarkerCollection GUIDialogList)
# Main executable

View file

@ -0,0 +1,19 @@
#include "LocalActor.hpp"
using namespace mwmp;
using namespace std;
LocalActor::LocalActor()
{
}
LocalActor::~LocalActor()
{
}
void LocalActor::update()
{
}

View file

@ -0,0 +1,19 @@
#ifndef OPENMW_LOCALACTOR_HPP
#define OPENMW_LOCALACTOR_HPP
#include <components/openmw-mp/Base/BaseActor.hpp>
namespace mwmp
{
class LocalActor : public BaseActor
{
public:
LocalActor();
virtual ~LocalActor();
void update();
};
}
#endif //OPENMW_LOCALACTOR_HPP

View file

@ -0,0 +1,28 @@
#ifndef OPENMW_BASEACTOR_HPP
#define OPENMW_BASEACTOR_HPP
#include <components/esm/loadcell.hpp>
namespace mwmp
{
class BaseActor
{
public:
BaseActor()
{
}
unsigned int movementFlags;
char movementAnim;
char drawState;
bool isFlying;
ESM::Position position;
ESM::Position direction;
ESM::Cell cell;
};
}
#endif //OPENMW_BASEACTOR_HPP

View file

@ -5,9 +5,9 @@
#ifndef OPENMW_BASEPLAYER_HPP
#define OPENMW_BASEPLAYER_HPP
#include <components/esm/npcstats.hpp>
#include <components/esm/loadcell.hpp>
#include <components/esm/loadnpc.hpp>
#include <components/esm/npcstats.hpp>
#include <components/esm/creaturestats.hpp>
#include <components/esm/loadclas.hpp>
#include <components/esm/loadspel.hpp>