com.threerings.tudey.util
Class ActiveAdvancer

java.lang.Object
  extended by com.threerings.tudey.util.ActorAdvancer
      extended by com.threerings.tudey.util.MobileAdvancer
          extended by com.threerings.tudey.util.ActiveAdvancer
Direct Known Subclasses:
PawnAdvancer

public class ActiveAdvancer
extends MobileAdvancer

Advancer for active actors.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.util.ActorAdvancer
ActorAdvancer.Environment
 
Constructor Summary
ActiveAdvancer(ActorAdvancer.Environment environment, Active active, int timestamp)
          Creates a new advancer for the supplied active.
 
Method Summary
 boolean canMove()
          Determines whether the actor can move.
 boolean canRotate()
          Determines whether the actor can rotate.
 void init(Actor actor, int timestamp)
          (Re)initializes the advancer.
 
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
 

Constructor Detail

ActiveAdvancer

public ActiveAdvancer(ActorAdvancer.Environment environment,
                      Active active,
                      int timestamp)
Creates a new advancer for the supplied active.

Method Detail

canMove

public boolean canMove()
Determines whether the actor can move.


canRotate

public boolean canRotate()
Determines whether the actor can rotate.


init

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

Overrides:
init in class MobileAdvancer


Copyright © 2011. All Rights Reserved.