Package sk.tuke.kpi.gamelib.map
Class MapMarker
- java.lang.Object
-
- sk.tuke.kpi.gamelib.map.MapMarker
-
- All Implemented Interfaces:
MapObject
public final class MapMarker extends java.lang.Object implements MapObject
Marks area within a map.- See Also:
SceneMap.getMarkers()
-
-
Constructor Summary
Constructors Constructor Description MapMarker(@NotNull BaseMapObject baseMapObject, @NotNull java.awt.Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
@NotNull java.lang.String
getName()
int
getPosX()
int
getPosY()
int
getWidth()
boolean
intersects(@NotNull Actor actor)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface sk.tuke.kpi.gamelib.map.MapObject
getCenterPosition
-
-
-
-
Constructor Detail
-
MapMarker
public MapMarker(@NotNull @NotNull BaseMapObject baseMapObject, @NotNull @NotNull java.awt.Shape shape)
-
-
Method Detail
-
getName
@NotNull public @NotNull java.lang.String getName()
-
intersects
public boolean intersects(@NotNull @NotNull Actor actor)
- Specified by:
intersects
in interfaceMapObject
- Returns:
- true if the object intersects with actor.
-
-