package playground; import gameobjects.GameObject; import gameobjects.RectObject; import java.awt.Color; /** * Represents the LevelWithBox. * @author Nour Den Almasri * */ public class LevelWithBox extends SpaceInvadersLevel { /** * Method prepares the new level. * @param id String represents the level * */ @Override public void prepareLevel(String id) { super.prepareLevel(id); GameObject o = new RectObject("red", this, 350, 100, 0, 0, 700, 250, Color.RED); this.addObject(o); } /** * Method show the Start's message. * @return the message should be showed */ @Override protected String getStartupMessage() { return "Get ready for box-Level!"; } }