Package playground

Class BreakoutLevel1


public class BreakoutLevel1 extends BreakoutLevelBase
  • Constructor Details

    • BreakoutLevel1

      public BreakoutLevel1()
  • Method Details

    • prepareLevel

      public void prepareLevel(String level)
      Description copied from class: BreakoutLevelBase
      Prepares a generic Breakout-Type level. This method relies on the methods BreakoutLevelBase.createEgoObject(), BreakoutLevelBase.createBall() and BreakoutLevelBase.createBrick(int, int), among others, which are meant to be overwritten in subclasses.
      Attention: the attributes BreakoutLevelBase.ball and BreakoutLevelBase.ego need to be set properly to GameObject instances when implementing this method BreakoutLevelBase.prepareLevel(String).
      Specified by:
      prepareLevel in class BreakoutLevelBase
      Parameters:
      level - String passes by the game engine (not used currently and can be ignored).