public class SharedObjectSpace
extends java.lang.Object
Constructor and Description |
---|
SharedObjectSpace(ObjectStateProtocol objectProtocol) |
Modifier and Type | Method and Description |
---|---|
void |
addObjectListener(SharedObjectListener l) |
void |
beginFrame(long time)
Used by the state receiver to notify client-side SharedObjectListeners
about a new frame.
|
void |
endFrame()
Used by the state receiver to notify client-side SharedObjectListeners
about an ended frame.
|
SharedObject |
getObject(int networkId) |
SharedObject |
getObject(int networkId,
java.lang.Long entityId) |
ObjectStateProtocol |
getObjectProtocol() |
protected void |
objectRemoved(SharedObject obj)
Used by the shared object to notify client-side SharedObjectListeners
about an object removal.
|
java.util.Collection<SharedObject> |
objects() |
protected void |
objectUpdated(SharedObject obj)
Used by the shared object to notify client-side SharedObjectListeners
about an object change.
|
void |
removeObject(SharedObject so) |
void |
removeObjectListener(SharedObjectListener l) |
void |
updateBaseline(java.util.List<FrameState> frames)
Update the shared object baselines with the specified frame
data.
|
public SharedObjectSpace(ObjectStateProtocol objectProtocol)
public final ObjectStateProtocol getObjectProtocol()
public SharedObject getObject(int networkId, java.lang.Long entityId)
public SharedObject getObject(int networkId)
public void removeObject(SharedObject so)
public java.util.Collection<SharedObject> objects()
public void addObjectListener(SharedObjectListener l)
public void removeObjectListener(SharedObjectListener l)
public final void beginFrame(long time)
protected final void objectUpdated(SharedObject obj)
protected final void objectRemoved(SharedObject obj)
public final void endFrame()
public void updateBaseline(java.util.List<FrameState> frames)