com.threerings.tudey.data
Class TudeySceneConfig

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.crowd.data.PlaceConfig
          extended by com.threerings.tudey.data.TudeySceneConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
ToolSceneConfig

public class TudeySceneConfig
extends com.threerings.crowd.data.PlaceConfig
implements Exportable, Cloneable, Copyable

Place configuration for Tudey scenes.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
TudeySceneConfig()
           
 
Method Summary
 TudeySceneConfig clone()
           
 Object copy(Object dest)
          Creates a copy of this object, (re)populating the supplied destination object if possible.
 Object copy(Object dest, Object outer)
          Creates a copy of this object, (re)populating the supplied destination object if possible.
 com.threerings.crowd.client.PlaceController createController()
           
 boolean equals(Object other)
           
 int getInputAdvance(int pingAverage)
          Returns the interval ahead of the smoothed server time (which estimates the server time minus one-way latency) at which clients schedule input events.
 String getManagerClassName()
           
 int getTransmitInterval()
          Returns the interval at which clients transmit their input frames.
 int hashCode()
           
 
Methods inherited from class com.threerings.crowd.data.PlaceConfig
getControllerClass
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TudeySceneConfig

public TudeySceneConfig()
Method Detail

getInputAdvance

public int getInputAdvance(int pingAverage)
Returns the interval ahead of the smoothed server time (which estimates the server time minus one-way latency) at which clients schedule input events. This should be at least the transmit interval (which represents the maximum amount of time that events may be delayed) plus the two-way latency.

Parameters:
pingAverage - the two-way latency estimate to use in the calculation.

getTransmitInterval

public int getTransmitInterval()
Returns the interval at which clients transmit their input frames.


copy

public Object copy(Object dest)
Description copied from interface: Copyable
Creates a copy of this object, (re)populating the supplied destination object if possible.

Specified by:
copy in interface Copyable
Returns:
either a reference to the destination object, if it could be repopulated, or a new object containing the copied state.

copy

public Object copy(Object dest,
                   Object outer)
Description copied from interface: Copyable
Creates a copy of this object, (re)populating the supplied destination object if possible.

Specified by:
copy in interface Copyable
outer - the outer object reference to use for inner object creation, if any.
Returns:
either a reference to the destination object, if it could be repopulated, or a new object containing the copied state.

createController

public com.threerings.crowd.client.PlaceController createController()
Overrides:
createController in class com.threerings.crowd.data.PlaceConfig

getManagerClassName

public String getManagerClassName()
Specified by:
getManagerClassName in class com.threerings.crowd.data.PlaceConfig

clone

public TudeySceneConfig clone()
Overrides:
clone in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.