Movement will now be handled by the movement manager instead of mob

This commit is contained in:
KimLS
2018-09-20 16:14:47 -07:00
parent f754cb1307
commit 7278c6294d
32 changed files with 323 additions and 306 deletions
+3
View File
@@ -16,6 +16,8 @@ public:
void SendPosition(Mob *who);
void SendPositionUpdate(Mob *who, bool send_to_self);
void NavigateTo(Mob *who, float x, float y, float z, float speed);
void StopNavigation(Mob *who);
static MobMovementManager &Get() {
static MobMovementManager inst;
@@ -32,6 +34,7 @@ private:
void SendUpdate(Mob *who, int anim, float heading);
void SendUpdateShortDistance(Mob *who, int anim, float heading);
void SendUpdateLongDistance(Mob *who, int anim, float heading);
void ProcessMovement(Mob *who, float x, float y, float z, float speed);
struct Implementation;
std::unique_ptr<Implementation> _impl;