Package view

Class MapEditorView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MapEditorView extends GameField
Implementation of the view of Map editor.
See Also:
  • Constructor Details

    • MapEditorView

      public MapEditorView(Game editor, JFrame frame)
      Constructs a new MapEditorView instance.
      Parameters:
      editor - game dependency, because of inheritance
      frame - the parent frame
  • Method Details

    • setupButtons

      protected void setupButtons()
      Sets the view's buttons.
      Overrides:
      setupButtons in class GameField
    • placeBlock

      protected void placeBlock(int x, int y)
      Places a new tile.
      Overrides:
      placeBlock in class GameField
      Parameters:
      x - the horizontal coordinate
      y - the vertical coordinate