20 package net.sf.gridarta.model.exitconnector;
22 import java.awt.Point;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
66 if (!mapModel.getMapArchObject().isPointValid(point)) {
70 final G head = part.getHead();
105 @SuppressWarnings(
"TypeMayBeWeakened")
106 public G
getExit(@NotNull final
MapModel<G, A, R> mapModel, @Nullable final Point point) {
107 if (point == null || !mapModel.getMapArchObject().isPointValid(point)) {
111 final G head = part.getHead();
130 final G head = exit.getHead();
157 return isExit(gameObject);
T getHead()
Return the head part of a multi-part object.
A MapModel reflects the data of a map.
G getExit(@NotNull final MapModel< G, A, R > mapModel, @Nullable final Point point)
Returns an exit game object on a given map square.
ExitMatcher(@NotNull final GameObjectMatcher exitMatcher)
Creates a new instance.
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
final GameObjectMatcher exitMatcher
The matcher for selecting exit objects.
boolean isValidExit(@NotNull final GameObject< G, A, R > gameObject)
Returns whether a GameObject is a valid exit.
String SLAYING
The name of the "slaying" attribute.
Base package of all Gridarta classes.
G getExit(@Nullable final G exit)
Returns whether the given game object is an exit game object.
Reflects a game object (object on a map).
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches an GameObject.
Selects valid exit game objects from maps.
static final long serialVersionUID
The serial version UID.
GameObjects are the objects based on Archetypes found on maps.
G getValidExit(@NotNull final MapModel< G, A, R > mapModel, @NotNull final Point point)
Returns an exit game object on a given map square having exit information.
boolean isExit(@NotNull final GameObject<?, ?, ?> gameObject)
Returns whether a GameObject is a valid exit.
Interface for MapArchObjects.
GameObject< G, A, R > getValidExit(@Nullable final G exit)
Returns whether the given game object is an exit game object having exit information.
boolean isMatching(@NotNull GameObject<?, ?, ?> gameObject)
Matches an GameObject.
MapSquare< G, A, R > getMapSquare()
Get the MapSquare of this GameObjectContainer.