jackson databind import
- and some reowrk to use Position more than (x,y) parameters
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.artisanlogiciel.games.maze.model;
|
||||
|
||||
import org.artisanlogiciel.games.maze.MovesProvider;
|
||||
import org.artisanlogiciel.games.maze.Position;
|
||||
import org.artisanlogiciel.games.maze.WallsProvider;
|
||||
|
||||
public interface LabyModelProvider
|
||||
@@ -10,15 +11,26 @@ extends WallsProvider,
|
||||
/**
|
||||
* add a new direction(s) exiting ones are kept
|
||||
*/
|
||||
void addDirection(int x, int y, short path);
|
||||
void addDirection(Position cell, short path);
|
||||
|
||||
/* set direction(s) existing ones are lost */
|
||||
void setDirection(int x, int y, short path);
|
||||
void setDirection(Position cell, short path);
|
||||
|
||||
/**
|
||||
* is there no wall in that direction ?
|
||||
* WARNING direction is in Brick ( ex Brick.UP )
|
||||
**/
|
||||
boolean canMoveInDirection(int x, int y, short direction);
|
||||
boolean canMoveInDirection(Position where, short direction);
|
||||
|
||||
/**
|
||||
* return if position position was change
|
||||
* WARNING direction is in Brick ( ex Brick.UP )
|
||||
*
|
||||
* @param inoutposition
|
||||
* @param direction
|
||||
* @return
|
||||
*/
|
||||
boolean moveInDirection(Position inoutposition, short direction);
|
||||
|
||||
/** like getMoves but include resolved information */
|
||||
short getPath(int x, int y);
|
||||
|
||||
Reference in New Issue
Block a user