com.threerings.tudey.data.actor
Class Pawn
java.lang.Object
com.threerings.util.DeepObject
com.threerings.tudey.data.actor.Actor
com.threerings.tudey.data.actor.Mobile
com.threerings.tudey.data.actor.Active
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 classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
| Fields inherited from class com.threerings.tudey.data.actor.Actor |
WARP |
| 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 |
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.
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.