Class ExitLocation
- java.lang.Object
-
- net.sf.gridarta.model.exitconnector.ExitLocation
-
public class ExitLocation extends java.lang.ObjectStores information about a remembered exit location.
-
-
Constructor Summary
Constructors Constructor Description ExitLocation(@NotNull MapFile mapFile, @NotNull java.awt.Point point, @NotNull java.lang.String mapName)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object obj)@NotNull java.awt.PointgetMapCoordinate()Returns the coordinate of the remembered exit.@NotNull MapFilegetMapFile()Returns the file of the map that contains the remembered exit.inthashCode()java.lang.StringtoString()voidupdateExitObject(@NotNull BaseObject<?,?,?,?> gameObject, boolean updateName, @Nullable MapFile sourceMapFile)Updates exit information.
-
-
-
Constructor Detail
-
ExitLocation
public ExitLocation(@NotNull @NotNull MapFile mapFile, @NotNull @NotNull java.awt.Point point, @NotNull @NotNull java.lang.String mapName)Creates a new instance.- Parameters:
mapFile- the map file that contains the remembered exitpoint- the coordinate of the remembered exitmapName- the map name of the remembered exit
-
-
Method Detail
-
getMapCoordinate
@NotNull public @NotNull java.awt.Point getMapCoordinate()
Returns the coordinate of the remembered exit.- Returns:
- the coordinate
-
updateExitObject
public void updateExitObject(@NotNull @NotNull BaseObject<?,?,?,?> gameObject, boolean updateName, @Nullable @Nullable MapFile sourceMapFile)Updates exit information.- Parameters:
gameObject- the exit game object to updateupdateName- whether the exit's name should be updatedsourceMapFile- the file of the map containinggameObjectornullif on an unsaved map
-
getMapFile
@NotNull public @NotNull MapFile getMapFile()
Returns the file of the map that contains the remembered exit.- Returns:
- the file
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-