Class Step
raft.kilavuz.grid
java.lang.Object
  raft.kilavuz.grid.Step

public class Step
extends Object
piece of information about a grid cell and how it is reached

Field Summary
short
action
action to take to reach this point or Land.ACTION_NONE if no action required.
float
elevation
elevation at the point reached with this step
short
terrain
terrain type at the point reached with this step.
Constructor Summary
Step(float elevation, short action)
creates a new Step with Land.DEFAULT_TERRAIN
Step(float elevation, short terrain, short action)
creates a new Step
Method Summary
toString()
returns a string representation of this step
Field Detail
elevation
public final float elevation
elevation at the point reached with this step

action
public final short action
action to take to reach this point or Land.ACTION_NONE if no action required. ie. our moving unit can move to this point with normal movement. custom StepChecker implementations can define additional actions
See Also:

terrain
public final short terrain
terrain type at the point reached with this step. currently terrain information is neither generated nor used. hopefully future relases will have support for it
Constructor Detail
Step
public Step(float elevation,
            short terrain,
            short action)
creates a new Step
Parameters:
elevation - elevation at the point reached with this step
terrain - type in this step, not used

Step
public Step(float elevation,
            short action)
creates a new Step with Land.DEFAULT_TERRAIN
Parameters:
elevation - elevation at the point reached with this step
Method Detail
toString
public String toString()
returns a string representation of this step
Overrides:
toString in class Object
Java API documentation generated with DocFlex/Doclet v1.5.2
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com