Package sk.tuke.kpi.gamelib.map
Class OutsideMapTile
- java.lang.Object
-
- sk.tuke.kpi.gamelib.map.OutsideMapTile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface sk.tuke.kpi.gamelib.map.MapTile
MapTile.Type
-
-
Constructor Summary
Constructors Constructor Description OutsideMapTile(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGridPosX()
Tile x position in the map tile gridint
getGridPosY()
Tile y position in the map tile gridint
getHeight()
Height of the tile@NotNull MapTile.Type
getType()
Type of the tileint
getWidth()
Width of the tileboolean
isWall()
void
setType(@NotNull MapTile.Type type)
Is true if the type of the tile iswall
-
-
-
Method Detail
-
getGridPosX
public int getGridPosX()
Description copied from interface:MapTile
Tile x position in the map tile grid- Specified by:
getGridPosX
in interfaceMapTile
-
getGridPosY
public int getGridPosY()
Description copied from interface:MapTile
Tile y position in the map tile grid- Specified by:
getGridPosY
in interfaceMapTile
-
getWidth
public int getWidth()
Description copied from interface:MapTile
Width of the tile
-
getHeight
public int getHeight()
Description copied from interface:MapTile
Height of the tile
-
getType
@NotNull public @NotNull MapTile.Type getType()
Description copied from interface:MapTile
Type of the tile- Specified by:
getType
in interfaceMapTile
- See Also:
MapTile.Type
-
setType
public void setType(@NotNull @NotNull MapTile.Type type)
Description copied from interface:MapTile
Is true if the type of the tile iswall
-
-