I am creating a game that has a healthcount, fuelcount and a scorecount. I create a new one of each in Level1, but I want to keep the same old ones when I switch to Level2 and then later to Level3. How can I do that?
public Level2(Spaceship spaceship)
{
super(??, ??, ??);
addObject(spaceship, ??, ??);
addObject(spaceship.healthCounter, ??, ??);
addObject(spaceship.scoreCounter, ??, ??);
addObject(spaceship.fuelCounter, ??, ??);
...
}