com.threerings.tudey.util
Class PawnAdvancer

java.lang.Object
  extended by com.threerings.tudey.util.ActorAdvancer
      extended by com.threerings.tudey.util.MobileAdvancer
          extended by com.threerings.tudey.util.ActiveAdvancer
              extended by com.threerings.tudey.util.PawnAdvancer

public class PawnAdvancer
extends ActiveAdvancer

Used on the client and the server to advance the state of a pawn based on its inputs and surroundings.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.util.ActorAdvancer
ActorAdvancer.Environment
 
Field Summary
static boolean acceptInputTranslation
           
 
Constructor Summary
PawnAdvancer(ActorAdvancer.Environment environment, Pawn pawn, int timestamp)
          Creates a new advancer for the supplied pawn.
 
Method Summary
 void advance(InputFrame frame)
          Advances to the timestamp of the provided input frame and sets the pawn's current input.
 void init(Actor actor, int timestamp)
          (Re)initializes the advancer.
 
Methods inherited from class com.threerings.tudey.util.ActiveAdvancer
canMove, canRotate
 
Methods inherited from class com.threerings.tudey.util.ActorAdvancer
advance, getActor, getTimestamp, jump, transfer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceptInputTranslation

public static boolean acceptInputTranslation
Constructor Detail

PawnAdvancer

public PawnAdvancer(ActorAdvancer.Environment environment,
                    Pawn pawn,
                    int timestamp)
Creates a new advancer for the supplied pawn.

Method Detail

advance

public void advance(InputFrame frame)
Advances to the timestamp of the provided input frame and sets the pawn's current input.


init

public void init(Actor actor,
                 int timestamp)
Description copied from class: ActorAdvancer
(Re)initializes the advancer.

Overrides:
init in class ActiveAdvancer


Copyright © 2011. All Rights Reserved.