Can someone help me understand what it means when the tasks ask to "In the setCellColor(int, int, Color) method, the base class's method must be called using the super keyword." Where does it go and how do I do it? Thank you in advance!
package com.codegym.games.racer;
import com.codegym.engine.cell.*;
public class RacerGame extends Game {
public final static int WIDTH = 64;
public final static int HEIGHT = 64;
public static final int CENTER_X = WIDTH/2;
public static final int ROADSIDE_WIDTH = 14;
public void initialize() {
setScreenSize(WIDTH, HEIGHT);
createGame();
showGrid(false);
}
private void createGame(){
drawScene();
}
private void drawScene(){
drawField();
}
private void drawField(){
for(int x = 0; x<WIDTH; x++){
for(int y = 0; y<HEIGHT; y++){
if(x == CENTER_X){
setCellColor(CENTER_X, y, Color.WHITE);
}
else if (x >= ROADSIDE_WIDTH && x<WIDTH - ROADSIDE_WIDTH){
setCellColor(x, y, Color.DIMGREY);
}
else{
setCellColor(x, y, Color.GREEN);
}
}
}
}
public void setCellColor(int x, int y, Color WHITE){
if (x > WIDTH || y> HEIGHT || x< 0 || y<0){
}
}
}