Package model

Class MapEditorModel

java.lang.Object
model.MapEditorModel

public class MapEditorModel extends Object
Implementation of MapEditor model class.
  • Constructor Details

    • MapEditorModel

      public MapEditorModel()
      Constructor for MapEditorModel.
  • Method Details

    • placeBlock

      public void placeBlock(int xIndex, int yIndex, GameFieldModel gameFieldModel, boolean inverted, Types type)
      Handles the placement of a building or unit.
      Parameters:
      xIndex - the x index of the tile
      yIndex - the y index of the tile
      gameFieldModel - the game field model
      inverted - whether the building is inverted
      type - the type of the building