this(at40k, drone, 24, 24);
}
public Gui(Fpslic at40k, FtdiBoard drone, int width, int height) {
+ super(drone);
this.at40k = at40k;
this.drone = drone;
for(int i=0; i<ca.length; i++)
this.cell = cell;
cells.add(this);
}
+ public boolean scanme() {
+ return cell.relevant();
+ }
public void clear() {
- gg.color(in ? selectedcell : (scanme ? new Color(0xbb, 0xbb, 0xbb) : nonselectedcell));
+ gg.color(in ? selectedcell : (scanme() ? new Color(0xbb, 0xbb, 0xbb) : nonselectedcell));
g.fillRect(0, 0, SIZE, SIZE);
}
public void draw() {
- if (cell.relevant() || scanme) {
+ if (cell.relevant() || scanme()) {
drawWires();
drawLocal();
g.translate(2, 5f);
- if (xlut_relevant(cell) || scanme) {
+ if (xlut_relevant(cell) || scanme()) {
Gate gate = getGate(cell.xlut(), true);
gate.draw(g,
!xknown ? Color.gray : xon ? Color.red : Color.white,
}
g.translate(34f, 0f);
- if (cell.ylut_relevant() || scanme) {
+ if (cell.ylut_relevant() || scanme()) {
Gate gate = getGate(cell.ylut(), false);
gate.draw(g,
!yknown ? Color.gray : yon ? Color.blue : Color.white,
for(int x=0; x<at40k.getWidth(); x++)
for(int y=0; y<at40k.getHeight(); y++)
if (ca[x][y] != null)
- if (ca[x][y].scanme)
+ if (ca[x][y].scanme())
scan(ca[x][y]);
}
public void scan(final Gui.Cell c) {
} else {
drone.readBus(new BCB(c, XLUT));
}
+ /*
if (!cell.yo())
for(Fpslic.Cell c2 : new Fpslic.Cell[] { cell.north(), cell.south(), cell.east(), cell.west() })
if (c2!=null && !c2.relevant()) {
c2.yi(NONE);
return;
}
+ */
c.yknown = false;
break;
case YLUT:
} else {
drone.readBus(new BCB(c, YLUT));
}
+ /*
if (!cell.xo())
for(Fpslic.Cell c2 : new Fpslic.Cell[] { cell.nw(), cell.sw(), cell.ne(), cell.se() })
if (c2!=null && !c2.relevant()) {
c2.xi(NONE);
return;
}
+ */
c.xknown = false;
break;
case ZMUX: {