com.threerings.tudey.data.actor
Class StepLimiter

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

public class StepLimiter
extends Object
implements Streamable

Limits the directions a mobile can step in.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
protected  float _maxDirection
          The maximum angle for valid steps.
protected  float _minDirection
          The minimum angle for valid steps.
 
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
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_minDirection

protected float _minDirection
The minimum angle for valid steps.


_maxDirection

protected float _maxDirection
The maximum angle for valid steps.

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