public class SharedObject
extends java.lang.Object
Constructor and Description |
---|
SharedObject(SharedObjectSpace space,
int networkId,
java.lang.Long realId) |
Modifier and Type | Method and Description |
---|---|
boolean |
applyNetworkState(long sequence,
ObjectState state,
LocalZoneIndex zoneIndex) |
ObjectState |
getDelta() |
java.lang.Long |
getEntityId() |
int |
getNetworkId() |
java.lang.Long |
getParentId() |
long |
getVersion() |
com.simsilica.mathd.Vec3d |
getWorldPosition() |
com.simsilica.mathd.Quatd |
getWorldRotation() |
boolean |
isFullyMarkedRemoved()
Returns true if the object is fully marked for removal
in both the current version and in the baseline (if it exists).
|
boolean |
isMarkedRemoved()
Returns true if the current version is marked for removal
even if the baseline is not.
|
boolean |
isNotifiedRemoved()
Returns true if the client side state receiver has already notified
listeners above the markRemoved.
|
void |
markNotifiedRemoved(boolean b)
The client side state receiver sets this flag if it has already
notified listeners about a removal.
|
void |
markRemoved(long time)
Marks this version of the object as removed if the specified
time is after the current object's last update time.
|
boolean |
updateBaseline(long sequence,
ObjectState state) |
boolean |
updateState(long time,
ZoneKey zone,
int zoneId,
java.lang.Long parentId,
com.simsilica.mathd.Vec3d pos,
com.simsilica.mathd.Quatd rot)
Updates the current object state with the supplied world state.
|
public SharedObject(SharedObjectSpace space, int networkId, java.lang.Long realId)
public int getNetworkId()
public java.lang.Long getEntityId()
public java.lang.Long getParentId()
public long getVersion()
public ObjectState getDelta()
public com.simsilica.mathd.Vec3d getWorldPosition()
public com.simsilica.mathd.Quatd getWorldRotation()
public boolean isMarkedRemoved()
public boolean isFullyMarkedRemoved()
public void markRemoved(long time)
public void markNotifiedRemoved(boolean b)
public boolean isNotifiedRemoved()
public boolean updateState(long time, ZoneKey zone, int zoneId, java.lang.Long parentId, com.simsilica.mathd.Vec3d pos, com.simsilica.mathd.Quatd rot)
public boolean updateBaseline(long sequence, ObjectState state)
public boolean applyNetworkState(long sequence, ObjectState state, LocalZoneIndex zoneIndex)