public class ExitLocation
extends java.lang.Object
Constructor and Description |
---|
ExitLocation(@NotNull MapFile mapFile,
@NotNull java.awt.Point point,
@NotNull java.lang.String mapName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object obj) |
@NotNull java.awt.Point |
getMapCoordinate()
Returns the coordinate of the remembered exit.
|
@NotNull MapFile |
getMapFile()
Returns the file of the map that contains the remembered exit.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
updateExitObject(@NotNull BaseObject<?,?,?,?> gameObject,
boolean updateName,
@Nullable MapFile sourceMapFile)
Updates exit information.
|
public ExitLocation(@NotNull @NotNull MapFile mapFile, @NotNull @NotNull java.awt.Point point, @NotNull @NotNull java.lang.String mapName)
mapFile
- the map file that contains the remembered exitpoint
- the coordinate of the remembered exitmapName
- the map name of the remembered exit@NotNull public @NotNull java.awt.Point getMapCoordinate()
public void updateExitObject(@NotNull @NotNull BaseObject<?,?,?,?> gameObject, boolean updateName, @Nullable @Nullable MapFile sourceMapFile)
gameObject
- the exit game object to updateupdateName
- whether the exit's name should be updatedsourceMapFile
- the file of the map containing gameObject
or
null
if on an unsaved map@NotNull public @NotNull MapFile getMapFile()
public boolean equals(@Nullable @Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object