com.threerings.tudey.config
Class HandlerConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.HandlerConfig
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Direct Known Subclasses:
HandlerConfig.BaseActorObserver, HandlerConfig.BaseIntersection, HandlerConfig.Request, HandlerConfig.Shutdown, HandlerConfig.Signal, HandlerConfig.SignalStart, HandlerConfig.SignalStop, HandlerConfig.Startup, HandlerConfig.Tick, HandlerConfig.Timer, HandlerConfig.VariableChanged

@EditorTypes(value={HandlerConfig.Startup.class,HandlerConfig.Shutdown.class,HandlerConfig.Tick.class,HandlerConfig.Timer.class,HandlerConfig.WarnTimer.class,HandlerConfig.Signal.class,HandlerConfig.SignalStart.class,HandlerConfig.SignalStop.class,HandlerConfig.Intersection.class,HandlerConfig.IntersectionStart.class,HandlerConfig.IntersectionStop.class,HandlerConfig.ThresholdIntersectionCount.class,HandlerConfig.Request.class,HandlerConfig.ActorAdded.class,HandlerConfig.ActorRemoved.class,HandlerConfig.VariableChanged.class})
public abstract class HandlerConfig
extends DeepObject
implements Exportable, com.threerings.io.Streamable

Configurations for server-side event handlers.


Nested Class Summary
static class HandlerConfig.ActorAdded
          The actor added event handler.
static class HandlerConfig.ActorRemoved
          An actor is removed event handler.
static class HandlerConfig.BaseActorObserver
          Base class for HandlerConfig.ActorAdded and HandlerConfig.ActorRemoved.
static class HandlerConfig.BaseIntersection
          Base class for the various intersection-related handlers.
static class HandlerConfig.BaseIntersectionCount
          The intersection count event handler.
static class HandlerConfig.DefaultShape
          Uses the source's shape with an optional expansion.
static class HandlerConfig.Intersection
          The intersection event handler.
static class HandlerConfig.IntersectionShape
          Base class for the intersection shapes.
static class HandlerConfig.IntersectionStart
          The intersection start event handler.
static class HandlerConfig.IntersectionStop
          The intersection stop event handler.
static class HandlerConfig.Request
          The client request event handler.
static class HandlerConfig.Shutdown
          The shutdown event handler.
static class HandlerConfig.Signal
          The signal event handler.
static class HandlerConfig.SignalStart
          The signal start event handler (fired on the first tick that a signal is received).
static class HandlerConfig.SignalStop
          The signal stop event handler (fired on the first tick that a signal stops being received).
static class HandlerConfig.Startup
          The startup event handler.
static class HandlerConfig.ThresholdIntersectionCount
          An threshold instsection count event handler.
static class HandlerConfig.Tick
          The tick event handler.
static class HandlerConfig.Timer
          The timer event handler.
static class HandlerConfig.TransformedShape
          Uses a different shape, transformed by the source's transform.
static class HandlerConfig.VariableChanged
          Called when any variable is modified.
static class HandlerConfig.WarnTimer
          A timer with a warning action.
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 ActionConfig action
          The action to take in response to the event.
 
Constructor Summary
HandlerConfig()
           
 
Method Summary
abstract  String getLogicClassName()
          Returns the name of the server-side logic class for this handler.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this handler into the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

action

@Editable(weight=1.0)
public ActionConfig action
The action to take in response to the event.

Constructor Detail

HandlerConfig

public HandlerConfig()
Method Detail

getLogicClassName

public abstract String getLogicClassName()
Returns the name of the server-side logic class for this handler.


getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Adds the resources to preload for this handler into the provided set.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.