I want to add an actor when u are game over
i have this code, but when I want to compile it, it says that he cannot find the symbol addObject(Mainmenu,int,int)
anyone knows how to fix this??
Actor under = getOneObjectAtOffset ( 0, 0, Rocket.class);
if(under != null)
{
getWorld().addObject(new Explosion(),getX(),getY());
Angrybirdsworld w = (Angrybirdsworld)getWorld();
ScoreImage s = w.getScoreImage();
int scoreVal = s.getValue();
Greenfoot.playSound("explosion.wav");
GameOver afgelopen = new GameOver(w.getScore());
getWorld().addObject(afgelopen, 250, 250);
getWorld().removeObject(this);
--->> addObject(new Mainmenu(), 300, 400); <<----
}
}

