Package model
Class MapEditorModel
java.lang.Object
model.MapEditorModel
Implementation of MapEditor model class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
placeBlock
(int xIndex, int yIndex, GameFieldModel gameFieldModel, boolean inverted, Types type) Handles the placement of a building or unit.
-
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 tileyIndex
- the y index of the tilegameFieldModel
- the game field modelinverted
- whether the building is invertedtype
- the type of the building
-