20 package net.sf.gridarta.model.mapmodel;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
58 if (floorGameObjectMatcher == null) {
59 mapSquare.addFirst(gameObject);
62 final G firstFloor = mapSquare.getFirst(floorGameObjectMatcher);
63 if (firstFloor == null) {
64 mapSquare.addFirst(gameObject);
68 mapSquare.insertAfter(firstFloor, gameObject);
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
BelowFloorInsertionMode(@Nullable final GameObjectMatcher floorGameObjectMatcher)
Initializes the class.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Insert right below the bottommost floor square.
GameObjects are the objects based on Archetypes found on maps.
static final long serialVersionUID
The serial version UID.
final GameObjectMatcher floorGameObjectMatcher
A GameObjectMatcher matching floor game objects.
void insert(@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare)
Interface for MapArchObjects.