show path with selected direction when resolved.

This commit is contained in:
philippe lhardy
2017-12-01 21:42:02 +01:00
parent 401c7e15d0
commit eeb1172f88
4 changed files with 147 additions and 85 deletions

View File

@@ -0,0 +1,40 @@
package org.artisanlogiciel.games;
/**
DirectionPosition
record direction and position ( direction as defined in LabyModel ).
**/
public class DirectionPosition
{
private short direction;
private Position position;
// (direction,position)
DirectionPosition(short d, Position p)
{
direction=d;
position=p;
}
short getDirection()
{
return direction;
}
Position getPosition()
{
return position;
}
public String toString()
{
if (position != null)
{
return position.toString();
}
return "?";
}
}