 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.exitconnector;
22 import java.awt.Point;
23 import java.util.Objects;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
78 return new Point(
x,
y);
91 if (sourceMapFile ==
null) {
93 mapPath = targetMapPath;
98 if (Objects.equals(sourceMapComponent, targetMapComponent)) {
103 mapPath = targetMapPath;
124 public boolean equals(@Nullable
final Object obj) {
128 if (obj ==
null || obj.getClass() != getClass()) {
Stores information about a remembered exit location.
A MapPath that is absolute, that is, it starts with a "/".
Point getMapCoordinate()
Returns the coordinate of the remembered exit.
Base package of all Gridarta classes.
String SP
The attribute name of the "sp" attribute.
String getMapComponent()
Returns the initial path component of a map path.
boolean equals(@Nullable final Object obj)
String NAME
The attribute name of the object's name.
AbsoluteMapPath getMapPath()
Returns the map path within getMapsDir().
MapFile getMapFile()
Returns the file of the map that contains the remembered exit.
String getMapComponent()
Returns the initial path component of a map path.
Represents a maps directory local map path.
boolean equals(@Nullable final Object obj)
String SLAYING
The name of the "slaying" attribute.
The location of a map file with a map directory.
final MapFile mapFile
The file of the map that contains the remembered exit.
final String mapName
The map name of the remembered exit.
final int y
The y-coordinate of the remembered exit.
RelativeMapPath getRelativeMapPathFrom(@NotNull AbsoluteMapPath mapPath)
Returns this map path relative to another map path.
ExitLocation(@NotNull final MapFile mapFile, @NotNull final Point point, @NotNull final String mapName)
Creates a new instance.
final int x
The x-coordinate of the remembered exit.
String HP
The attribute name of the "hp" attribute.
void updateExitObject(@NotNull final BaseObject<?, ?, ?, ?> gameObject, final boolean updateName, @Nullable final MapFile sourceMapFile)
Updates exit information.