Update opcode data and movement integration docs/code

This commit is contained in:
Kelsi 2026-02-18 03:15:25 -08:00
parent 86127f0ddf
commit bd0ce17794
11 changed files with 41 additions and 15 deletions

View file

@ -105,6 +105,13 @@ public:
bool isEntityMoving() const { return isMoving_; }
// Returns the latest server-authoritative position: destination if moving, current if not.
// Unlike getX/Y/Z (which only update via updateMovement), this always reflects the
// last known server position regardless of distance culling.
float getLatestX() const { return isMoving_ ? moveEndX_ : x; }
float getLatestY() const { return isMoving_ ? moveEndY_ : y; }
float getLatestZ() const { return isMoving_ ? moveEndZ_ : z; }
// Object type
ObjectType getType() const { return type; }
void setType(ObjectType t) { type = t; }