Package sk.tuke.kpi.gamelib.map
Class BaseMapObject
- java.lang.Object
-
- sk.tuke.kpi.gamelib.map.BaseMapObject
-
-
Constructor Summary
Constructors Constructor Description BaseMapObject(@NotNull java.lang.String name, int posX, int posY, int width, int height)
-
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
-
-
-
-
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.
-
-