public class Zone
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addChild(java.lang.Long id) |
void |
beginUpdate(long time) |
boolean |
commitUpdate()
Returns true if there was a state block to push or false
if the state block was empty and history is also empty.
|
boolean |
isEmpty() |
StateBlock[] |
purgeHistory()
Purges the history and returns it.
|
void |
removeChild(java.lang.Long id) |
java.lang.String |
toString() |
void |
update(java.lang.Long parent,
java.lang.Long id,
com.simsilica.mathd.Vec3d pos,
com.simsilica.mathd.Quatd rotation)
Adds the update information to the current StateBlock.
|
void |
warp(java.lang.Long parent,
java.lang.Long id)
Adds the warp information to the current StateBlock.
|
public Zone(ZoneKey key, int historyBacklog)
public void beginUpdate(long time)
public void update(java.lang.Long parent, java.lang.Long id, com.simsilica.mathd.Vec3d pos, com.simsilica.mathd.Quatd rotation)
public void warp(java.lang.Long parent, java.lang.Long id)
public void addChild(java.lang.Long id)
public void removeChild(java.lang.Long id)
public final boolean isEmpty()
public boolean commitUpdate()
public StateBlock[] purgeHistory()
public java.lang.String toString()
toString
in class java.lang.Object