mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
[General] Add simple BaseActor and LocalActor classes
This commit is contained in:
parent
679e790d8d
commit
d24cde16dd
5 changed files with 68 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
19
apps/openmw/mwmp/LocalActor.cpp
Normal file
19
apps/openmw/mwmp/LocalActor.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "LocalActor.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
using namespace std;
|
||||
|
||||
LocalActor::LocalActor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
LocalActor::~LocalActor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void LocalActor::update()
|
||||
{
|
||||
|
||||
}
|
19
apps/openmw/mwmp/LocalActor.hpp
Normal file
19
apps/openmw/mwmp/LocalActor.hpp
Normal 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
|
28
components/openmw-mp/Base/BaseActor.hpp
Normal file
28
components/openmw-mp/Base/BaseActor.hpp
Normal 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
|
|
@ -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…
Reference in a new issue