Package playground

Class LevelWithBox


public class LevelWithBox extends SpaceInvadersLevel
This class adds a new level to the game.
Author:
team22
  • Constructor Details

    • LevelWithBox

      public LevelWithBox()
  • Method Details

    • prepareLevel

      public void prepareLevel(String id)
      This method overrides the initial method and adds a red rectangle on the top which does not do anything.
      Overrides:
      prepareLevel in class SpaceInvadersLevel
      Parameters:
      id - String identifies level
    • getStartupMessage

      protected String getStartupMessage()
      This method overrides the initial method to change the startup message.
      Overrides:
      getStartupMessage in class SpaceInvadersLevel
      Returns:
      String Startup message