Почему не принимает move и draw?
package com.javarush.task.task24.task2413;
public class Ball extends BaseObject{
private double speed;
private double direction;
private double dx = speed * direction;
private double dy = speed * direction;
private boolean isFrozen;
public Ball(double x, double y, double radius) {
super(x, y, radius);
}
public Ball(double x, double y, double speed, double direction) {
super(x, y, 1);
this.speed = speed;
this.direction = direction;
this.isFrozen = true;
}
public double getSpeed() {
return this.speed;
}
public double getDirection() {
return this.direction;
}
public double getDx() {
return this.dx;
}
public double getDy() {
return this.dy;
}
@Override
public void draw(Canvas canvas) {
canvas.setPoint(x,y,'O');
}
@Override
public void move() {
if (this.isFrozen == false) {
this.x =getX() + dx;
this.y =getY() + dy;
}
}
@Override
public synchronized void start() {
super.start();
this.isFrozen = false;
}
public void setDirection(double ang) {
this.direction = ang;
double angle = Math.toRadians(direction);
dx = Math.cos(angle) * speed;
dy = -Math.sin(angle) * speed;
}
void checkRebound(int minx, int maxx, int miny, int maxy){
}
}