Package sk.tuke.kpi.gamelib.map
Class ActorMapObject
- java.lang.Object
-
- sk.tuke.kpi.gamelib.map.ActorMapObject
-
-
Constructor Summary
Constructors Constructor Description ActorMapObject(@NotNull BaseMapObject baseMapObject, @Nullable java.lang.String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
@NotNull java.lang.String
getName()
int
getPosX()
int
getPosY()
@Nullable java.lang.String
getType()
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
-
ActorMapObject
public ActorMapObject(@NotNull @NotNull BaseMapObject baseMapObject, @Nullable @Nullable java.lang.String type)
-
-
Method Detail
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getType
@Nullable public @Nullable java.lang.String getType()
-
intersects
public boolean intersects(@NotNull @NotNull Actor actor)
- Specified by:
intersects
in interfaceMapObject
- Returns:
- true if the object intersects with actor.
-
-