void mark(int[][] line) { if (line.length == 0) return; for (int i = 0; i < line.length; i++) Life.makeBlue(line[i][0], line[i][1]); Life.critterMap[y][x] = false; this.x = line[line.length - 1][0]; this.y = line[line.length - 1][1]; Life.critterMap[y][x] = true; }
public HungryCritter(int xCoor, int yCoor, int aPos) { super(xCoor, yCoor, aPos); Life.makeBlue(xCoor, yCoor); }