Подскажите плиз, почему вылазит ошибка no suitable method found for setCellValueEx(int,int,java.lang.String). Как буд-то нету метода с такими параметрами. Если добавить еще один аргумент Color, то все работает отлично (запускается и отрисовывается).
package com.javarush.games.snake;
import com.javarush.engine.cell.*;
public class SnakeGame extends Game {
//SnakeGame snakeGame = new SnakeGame();
public static final int WIDTH = 15;
public static final int HEIGHT = 15;
private Snake snake;
private void createGame(){
snake = new Snake(WIDTH/2,HEIGHT/2);
drawScene();
//Apple apple = new Apple(7,7);
//apple.draw(this);
snake.draw(this);
}
private void drawScene(){
for (int x=0; x< HEIGHT; x++){
for (int y=0; y<WIDTH; y++){
setCellColor (x, y, Color.DARKSEAGREEN);
}
}
snake.draw(this);
}
@Override
public void initialize() {
setScreenSize(WIDTH, HEIGHT);
createGame();
}
}