Files
artloglaby/java/org/artisanlogiciel/games/maze/WallsProvider.java
philippe lhardy 02fda1fc2e refactoring, deploy Position and XYGridIterator
- try to use more Position instead of (x,y)
  - create PositionWithDpeth for its specific usage in path finding
- create a XYGridITerator that walk cells from grid X then Y.
2020-12-28 20:05:10 +01:00

28 lines
487 B
Java

package org.artisanlogiciel.games.maze;
import org.artisanlogiciel.games.maze.model.WidthHeightProvider;
/**
* WallsProvider provide a Walls representation
**/
public interface WallsProvider
extends WidthHeightProvider
{
/**
* See Brick
*
* Will set bits :
* 3 2 1 0
* (8)(4)(2)(1)
* ^ > v <
* U R D L
* p i o e
* g w f
* h n t
* t
**/
short getWalls(int x, int y);
short getWalls(Position cell);
}