one step beyond laby edition
allow to draw pathes before generation still not working
This commit is contained in:
@@ -119,7 +119,7 @@ public class LabyModel implements WallsProvider
|
||||
// FIXME FULLY BREAK RESOLVING...
|
||||
public void noWalls(int x, int y)
|
||||
{
|
||||
if ((x > 0) && (x < width) && (y > 0) && (y < height))
|
||||
if ((x >= 0) && (x < width) && (y >= 0) && (y < height))
|
||||
{
|
||||
// t[x][y] |= DIRECTION | VERTICAL | POSITIVE | HORIZONTAL | NEGATIVE | LEFT | RIGHT | UP | DOWN;
|
||||
t[x][y] |= DIRECTION | VERTICAL | POSITIVE | HORIZONTAL | NEGATIVE;
|
||||
@@ -131,9 +131,9 @@ public class LabyModel implements WallsProvider
|
||||
// FIXME FULLY BREAK RESOLVING...
|
||||
public void setDirection(int x, int y, short path)
|
||||
{
|
||||
if ((x > 0) && (x < width) && (y > 0) && (y < height))
|
||||
if ((x >= 0) && (x < width) && (y >= 0) && (y < height))
|
||||
{
|
||||
t[x][y]= path;
|
||||
t[x][y]= (short) (path | OPEN);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,9 +141,9 @@ public class LabyModel implements WallsProvider
|
||||
// FIXME FULLY BREAK RESOLVING...
|
||||
public void addDirection(int x, int y, short path)
|
||||
{
|
||||
if ((x > 0) && (x < width) && (y > 0) && (y < height))
|
||||
if ((x >= 0) && (x < width) && (y >= 0) && (y < height))
|
||||
{
|
||||
t[x][y]|= path;
|
||||
t[x][y]|= (short) (path | OPEN);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user