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:
@@ -50,6 +50,7 @@ implements StatusListener
|
||||
|
||||
boolean statusEnable = true;
|
||||
boolean mGrow = false;
|
||||
boolean mHexagon = false;
|
||||
|
||||
JTextField statusField = null;
|
||||
|
||||
@@ -101,7 +102,8 @@ implements StatusListener
|
||||
}
|
||||
|
||||
private MazeComponent createMazeComponent(LabyModel model, int W, int H) {
|
||||
MazeCellParameters cp = new MazeCellParameters(model.getWidth(), model.getHeight(), W, H, 0, 0);
|
||||
|
||||
MazeCellParameters cp = mHexagon ? new HexagonCell(model.getWidth(), model.getHeight(), W, H, 0, 0) : new MazeCellParameters(model.getWidth(), model.getHeight(), W, H, 0, 0);
|
||||
MazeComponent comp = new MazeComponent(model, cp, this);
|
||||
Xpm xpm = new Xpm();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user