Package sk.tuke.kpi.gamelib.map
Interface MapTile
-
- All Known Implementing Classes:
BaseMapTile
,OutsideMapTile
public interface MapTile
Map tile representing a place in the map grid. Its type specifies whether there is a wall at that place in the map.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MapTile.Type
Types for map tiles.
-
Method Summary
All Methods Instance Methods Abstract 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
int getGridPosX()
Tile x position in the map tile grid
-
getGridPosY
int getGridPosY()
Tile y position in the map tile grid
-
getWidth
int getWidth()
Width of the tile
-
getHeight
int getHeight()
Height of the tile
-
getType
@NotNull @NotNull MapTile.Type getType()
Type of the tile- See Also:
MapTile.Type
-
setType
void setType(@NotNull @NotNull MapTile.Type type)
Is true if the type of the tile iswall
-
isWall
boolean isWall()
-
-