com.threerings.tudey.data.actor
Class Pawn

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

public class Pawn
extends Active

An actor controlled by a player.


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.Active
LAST_ACTIVITY, NONE
 
Fields inherited from class com.threerings.tudey.data.actor.Mobile
LAST_FLAG, MOVING
 
Fields inherited from class com.threerings.tudey.data.actor.Actor
WARP
 
Constructor Summary
Pawn()
          No-arg constructor for deserialization.
Pawn(ConfigReference<ActorConfig> config, int id, int created, Vector2f translation, float rotation)
          Creates a new pawn.
 
Method Summary
 ActorAdvancer createAdvancer(ActorAdvancer.Environment environment, int timestamp)
          Creates an advancer for the actor.
 boolean isClientControlled(TudeyContext ctx, TudeySceneView view)
          Checks whether this actor is client controlled.
 
Methods inherited from class com.threerings.tudey.data.actor.Active
copy, equals, getActivity, getActivityStarted, hashCode, interpolate, setActivity, setActivity, setActivityStarted
 
Methods inherited from class com.threerings.tudey.data.actor.Mobile
addStepLimiter, extrapolate, getDirection, getMaxStep, getMaxStepSquared, getSpeed, getTurnDirection, getTurnRate, removeStepLimiter, setDirection, setMaxStep, step
 
Methods inherited from class com.threerings.tudey.data.actor.Actor
canCollide, canCollide, clear, getCollisionFlags, getCollisionMask, getConfig, getCreated, getDestroyed, getFlags, getId, getOriginal, getPreloads, getRotation, getTranslation, init, 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

Pawn

public Pawn(ConfigReference<ActorConfig> config,
            int id,
            int created,
            Vector2f translation,
            float rotation)
Creates a new pawn.


Pawn

public Pawn()
No-arg constructor for deserialization.

Method Detail

isClientControlled

public boolean isClientControlled(TudeyContext ctx,
                                  TudeySceneView view)
Description copied from class: Actor
Checks whether this actor is client controlled.

Overrides:
isClientControlled in class Actor

createAdvancer

public ActorAdvancer createAdvancer(ActorAdvancer.Environment environment,
                                    int timestamp)
Description copied from class: Actor
Creates an advancer for the actor.

Overrides:
createAdvancer in class Active


Copyright © 2011. All Rights Reserved.