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);
63 final G lastFloor = mapSquare.getLast(floorGameObjectMatcher);
64 if (lastFloor == null) {
65 mapSquare.addFirst(gameObject);
69 mapSquare.insertBefore(gameObject, lastFloor);
Insert right above the topmost floor square.
AboveFloorInsertionMode(@Nullable final GameObjectMatcher floorGameObjectMatcher)
Initializes the class.
final GameObjectMatcher floorGameObjectMatcher
A GameObjectMatcher matching floor game objects.
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
static final long serialVersionUID
The serial version UID.
void insert(@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare)
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.