prepare for hexagon display & other models

- display cell as hexagon is Display.mHexagon if set ( not default )
will need a checkbox to set this
- various new models preparation...
This commit is contained in:
philippe lhardy
2020-12-27 15:40:22 +01:00
parent e146199ba0
commit afbe26065b
15 changed files with 403 additions and 26 deletions

View File

@@ -26,10 +26,12 @@ public class Brick
public final static short ENTRY = 16;
public final static short GOAL = 32;
// TODO get rid of those chars
char a;
char b;
char c;
char d;
short walls; // according to LabyModel.getWalls();
protected Brick()
@@ -46,6 +48,11 @@ public class Brick
this.walls = walls;
}
public static boolean isFlagSet(short flags, short wall)
{
return ( flags & wall ) == flags;
}
public String getUpString()
{
return "" + a + b;