You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class MonochromeTile extends PlayableTile {
public MonochromeTile(int x, int y) {
super(x, y);
correctState = ParsedImage.getBoolean(x-1, y-1);
this.addMouseListener(this);
}
// The correct state of this tile according to the read image, B/W so it can be stored as a boolean
private final boolean correctState;
// Array containing black and white, this is used to swap between the colours when you click, indexing a click counter into this array but using the % operator so it
// doesn't go out of bounds
private final int[] possibleColors = new int[] {-1, Color.black.getRGB()};