com.threerings.tudey.data.actor
Class EntryState

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.data.actor.Actor
          extended by com.threerings.tudey.data.actor.EntryState
All Implemented Interfaces:
Deltable, com.threerings.io.Streamable, Copyable, Cloneable

public class EntryState
extends Actor

An actor that represents the state of an entry. Entries themselves cannot have dynamic state per se, so stateful entries must create actor instances to represent their dynamic state. The sprites for these actors may manipulate the entries' sprites.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 
Fields inherited from class com.threerings.tudey.data.actor.Actor
LAST_FLAG, WARP
 
Constructor Summary
EntryState()
          No-arg constructor for deserialization.
EntryState(ConfigReference<ActorConfig> config, int id, int created, Vector2f translation, float rotation)
          Creates a new entry state actor.
 
Method Summary
 Object getKey()
          Returns the key of the entry to which this actor corresponds.
 int getState()
          Returns the state that the entry is in.
 int getStateEntered()
          Returns the time at which the entry entered its current state.
 void setKey(Object key)
          Sets the key of the entry to which this actor corresponds.
 void setState(int state, int entered)
          Sets the state that the entry is in.
 
Methods inherited from class com.threerings.tudey.data.actor.Actor
canCollide, canCollide, clear, copy, createAdvancer, equals, extrapolate, getCollisionFlags, getCollisionMask, getConfig, getCreated, getDestroyed, getFlags, getId, getOriginal, getPreloads, getRotation, getTranslation, hashCode, init, interpolate, isClientControlled, isDirty, isSet, maybeCreateAdvancer, set, set, setConfig, setDestroyed, setDirty, setFlags, setRotation, setTranslation, toString
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntryState

public EntryState(ConfigReference<ActorConfig> config,
                  int id,
                  int created,
                  Vector2f translation,
                  float rotation)
Creates a new entry state actor.


EntryState

public EntryState()
No-arg constructor for deserialization.

Method Detail

setKey

public void setKey(Object key)
Sets the key of the entry to which this actor corresponds.


getKey

public Object getKey()
Returns the key of the entry to which this actor corresponds.


setState

public void setState(int state,
                     int entered)
Sets the state that the entry is in.


getState

public int getState()
Returns the state that the entry is in.


getStateEntered

public int getStateEntered()
Returns the time at which the entry entered its current state.



Copyright © 2011. All Rights Reserved.