com.threerings.crowd.client
Class LocationDecoder

java.lang.Object
  extended by com.threerings.presents.client.InvocationDecoder
      extended by com.threerings.crowd.client.LocationDecoder

public class LocationDecoder
extends InvocationDecoder

Dispatches calls to a LocationReceiver instance.


Field Summary
static int FORCED_MOVE
          The method id used to dispatch LocationReceiver.forcedMove(int) notifications.
static String RECEIVER_CODE
          The generated hash code used to identify this receiver class.
 
Fields inherited from class com.threerings.presents.client.InvocationDecoder
receiver
 
Constructor Summary
LocationDecoder(LocationReceiver receiver)
          Creates a decoder that may be registered to dispatch invocation service notifications to the specified receiver.
 
Method Summary
 void dispatchNotification(int methodId, Object[] args)
          Dispatches the specified method to our receiver.
 String getReceiverCode()
          Returns the generated hash code that is used to identify this invocation notification service.
 
Methods inherited from class com.threerings.presents.client.InvocationDecoder
cast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECEIVER_CODE

public static final String RECEIVER_CODE
The generated hash code used to identify this receiver class.

See Also:
Constant Field Values

FORCED_MOVE

public static final int FORCED_MOVE
The method id used to dispatch LocationReceiver.forcedMove(int) notifications.

See Also:
Constant Field Values
Constructor Detail

LocationDecoder

public LocationDecoder(LocationReceiver receiver)
Creates a decoder that may be registered to dispatch invocation service notifications to the specified receiver.

Method Detail

getReceiverCode

public String getReceiverCode()
Description copied from class: InvocationDecoder
Returns the generated hash code that is used to identify this invocation notification service.

Specified by:
getReceiverCode in class InvocationDecoder

dispatchNotification

public void dispatchNotification(int methodId,
                                 Object[] args)
Description copied from class: InvocationDecoder
Dispatches the specified method to our receiver.

Overrides:
dispatchNotification in class InvocationDecoder