org.deken.game.movement
Class Wander8Movement.Randomness

java.lang.Object
  extended by org.deken.game.movement.Wander8Movement.Randomness
Direct Known Subclasses:
Wander8Movement.ExtremeRandomness, Wander8Movement.MildRandomness
Enclosing class:
Wander8Movement

public abstract class Wander8Movement.Randomness
extends java.lang.Object

class to determine the randomness of the wandering.


Constructor Summary
protected Wander8Movement.Randomness()
           
 
Method Summary
abstract  float getNewOffset()
          Returns an offset 45 degree increments.
 float getRandomDirection()
          Creates a random direction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wander8Movement.Randomness

protected Wander8Movement.Randomness()
Method Detail

getNewOffset

public abstract float getNewOffset()
Returns an offset 45 degree increments.

Returns:
float

getRandomDirection

public float getRandomDirection()
Creates a random direction.

Returns:
float in 45 degrees