please help!!!!!!!!!!!!!!!!!!!!!!!!!!!
the error message:
method move in class greenfoot.Actor cannot be applied to given types;
required: int; found: no arguments; reason: actual and formal argument lists differ in length
the move() in Mover witch is my sub class that player class comes under:
Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!
private void fire()
{
if(reloadDelayCount >= gunReloadTime) {
MachineGun b = new MachineGun(getMovement().copy(), 0);
getWorld().addObject(b, getX(), getY());
b.move();
shotsFired++;
reloadDelayCount = 0;
}
}
} public void move()
{
x = x + movement.getX();
y = y + movement.getY();
if(x >= getWorld().getWidth()) {
x = 0;
}
if(x < 0) {
x = getWorld().getWidth() - 1;
}
if(y >= getWorld().getHeight()) {
y = 0;
}
if(y < 0) {
y = getWorld().getHeight() - 1;
}
setLocation(x, y);
}

