 |
Gridarta Editor
|
Go to the documentation of this file.
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();
103 if (point ==
null || !mapModel.getMapArchObject().isPointValid(point)) {
107 final G head = part.getHead();
126 final G head = exit.getHead();
127 return isExit(head) ? head :
null;
150 return isExit(gameObject);
boolean isExit(@NotNull final GameObject<?, ?, ?> gameObject)
Returns whether a GameObject is a valid exit.
A MapModel reflects the data of a map.
final GameObjectMatcher exitMatcher
The matcher for selecting exit objects.
Base package of all Gridarta classes.
String SP
The attribute name of the "sp" attribute.
G getExit(@NotNull final MapModel< G, A, R > mapModel, @Nullable final Point point)
Returns an exit game object on a given map square.
Interface for classes that match GameObjects.
static final long serialVersionUID
The serial version UID.
Reflects a game object (object on a map).
Selects valid exit game objects from maps.
boolean isMatching(@NotNull final GameObject<?, ?, ?> gameObject)
Matches a GameObject.
boolean isMatching(@NotNull GameObject<?, ?, ?> gameObject)
Matches a GameObject.
ExitMatcher(@NotNull final GameObjectMatcher exitMatcher)
Creates a new instance.
GameObjects are the objects based on Archetypes found on maps.
GameObject< G, A, R > getValidExit(@Nullable final G exit)
Returns whether the given game object is an exit game object having exit information.
Classes related to matching {GameObjects}, so called { net.sf.gridarta.model.match....
Interface for MapArchObjects.
String SLAYING
The name of the "slaying" attribute.
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.
T getHead()
Return the head part of a multi-part object.
MapSquare< G, A, R > getMapSquare()
Returns the MapSquare this game object is part of.
String HP
The attribute name of the "hp" attribute.
G getExit(@Nullable final G exit)
Returns whether the given game object is an exit game object.
boolean isValidExit(@NotNull final GameObject< G, A, R > gameObject)
Returns whether a GameObject is a valid exit.