mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
Update opcode data and movement integration docs/code
This commit is contained in:
parent
86127f0ddf
commit
bd0ce17794
11 changed files with 41 additions and 15 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue