com.threerings.tudey.data.actor
Class StepLimiter

java.lang.Object
  extended by com.threerings.tudey.data.actor.StepLimiter
All Implemented Interfaces:
com.threerings.io.Streamable

public class StepLimiter
extends Object
implements com.threerings.io.Streamable

Limits the directions a mobile can step in.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
StepLimiter()
          No-arg constructor for deserialization.
StepLimiter(float minDirection, float maxDirection)
          Creates a new StepLimiter.
 
Method Summary
 boolean canStep(float direction)
          Returns true if the direction is valid for stepping.
 boolean equals(Object other)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepLimiter

public StepLimiter(float minDirection,
                   float maxDirection)
Creates a new StepLimiter.


StepLimiter

public StepLimiter()
No-arg constructor for deserialization.

Method Detail

canStep

public boolean canStep(float direction)
Returns true if the direction is valid for stepping.


equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.