com.threerings.tudey.config
Class ActorConfig.Mobile

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ActorConfig.Implementation
          extended by com.threerings.tudey.config.ActorConfig.Original
              extended by com.threerings.tudey.config.ActorConfig.Mobile
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ActorConfig.Agent, ActorConfig.Pawn
Enclosing class:
ActorConfig

public static class ActorConfig.Mobile
extends ActorConfig.Original

Base class for mobile implementations.


Field Summary
 float speed
          The speed at which the actor (normally) travels.
 boolean startInStasis
          Whether or not the actor starts out in stasis.
 boolean startMoving
          If true, set the actor in motion after spawning.
 int stasisInterval
          Put the actor into stasis when it's been out of sight for this long (zero if we should never put it into stasis).
 
Fields inherited from class com.threerings.tudey.config.ActorConfig.Original
collisionFlags, collisionMask, defaultEntrance, handlers, isStatic, shape, spawnAdjustMask, spawnMask, sprite, tags
 
Constructor Summary
ActorConfig.Mobile()
          Default constructor.
 
Method Summary
 Actor createActor(ConfigReference<ActorConfig> config, int id, int created, Vector2f translation, float rotation)
          Creates a new actor of the type associated with this config.
 String getLogicClassName()
          Returns the name of the server-side logic class to use for the actor.
 
Methods inherited from class com.threerings.tudey.config.ActorConfig.Original
getOriginal, getPreloads, getSpriteImplementation, invalidate
 
Methods inherited from class com.threerings.tudey.config.ActorConfig.Implementation
getUpdateReferences
 
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

speed

@Editable(min=0.0,
          step=0.01,
          hgroup="s")
public float speed
The speed at which the actor (normally) travels.


startMoving

@Editable(hgroup="s")
public boolean startMoving
If true, set the actor in motion after spawning.


startInStasis

@Editable(hgroup="a")
@Strippable
public boolean startInStasis
Whether or not the actor starts out in stasis.


stasisInterval

@Editable(min=0.0,
          hgroup="a")
@Strippable
public int stasisInterval
Put the actor into stasis when it's been out of sight for this long (zero if we should never put it into stasis).

Constructor Detail

ActorConfig.Mobile

public ActorConfig.Mobile()
Default constructor.

Method Detail

getLogicClassName

public String getLogicClassName()
Description copied from class: ActorConfig.Original
Returns the name of the server-side logic class to use for the actor.

Overrides:
getLogicClassName in class ActorConfig.Original

createActor

public Actor createActor(ConfigReference<ActorConfig> config,
                         int id,
                         int created,
                         Vector2f translation,
                         float rotation)
Description copied from class: ActorConfig.Original
Creates a new actor of the type associated with this config.

Overrides:
createActor in class ActorConfig.Original


Copyright © 2011. All Rights Reserved.