com.threerings.tudey.util
Class PawnAdvancer
java.lang.Object
com.threerings.tudey.util.ActorAdvancer
com.threerings.tudey.util.MobileAdvancer
com.threerings.tudey.util.ActiveAdvancer
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.
|
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. |
acceptInputTranslation
public static boolean acceptInputTranslation
PawnAdvancer
public PawnAdvancer(ActorAdvancer.Environment environment,
Pawn pawn,
int timestamp)
- Creates a new advancer for the supplied pawn.
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.