[General] Add simple BaseActor and LocalActor classes

0.6.1
David Cernat 8 years ago
parent 679e790d8d
commit d24cde16dd

@ -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

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

@ -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

@ -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

@ -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>

Loading…
Cancel
Save