public class ExitLocation
extends java.lang.Object
Constructor and Description |
---|
ExitLocation(MapFile mapFile,
java.awt.Point point,
java.lang.String mapName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.awt.Point |
getMapCoordinate()
Returns the coordinate of the remembered exit.
|
MapFile |
getMapFile()
Returns the file of the map that contains the remembered exit.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
updateExitObject(BaseObject<?,?,?,?> gameObject,
boolean updateName,
MapFile sourceMapFile)
Updates exit information.
|
public ExitLocation(@NotNull MapFile mapFile, @NotNull java.awt.Point point, @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 java.awt.Point getMapCoordinate()
public void updateExitObject(@NotNull BaseObject<?,?,?,?> gameObject, boolean updateName, @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 MapFile getMapFile()
public boolean equals(@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