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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user