|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.tudey.data.actor.StepLimiter
public class StepLimiter
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 |
|---|
protected float _minDirection
protected float _maxDirection
| Constructor Detail |
|---|
public StepLimiter(float minDirection,
float maxDirection)
public StepLimiter()
| Method Detail |
|---|
public boolean canStep(float direction)
public boolean equals(Object other)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||