public void NextStage() { stage++; if (stage >= 4) { currentState = new GameEndedWin(); } else { currentState = new ShipOK(); } currentState.State(); }
public void Hit() { ShipCollisionPoints--; if (ShipCollisionPoints <= 0) { currentState = new GameEndedLost(); } else if (ShipCollisionPoints <= 10) { currentState = new ShipAtRisk(); } else { currentState = new ShipOK(); } currentState.State(); }