Tile
Constructors
Types
Functions
blocked
Link copied to clipboard
Checks whether or not the collision flags for the current tile contains any of the default blocking flags.
collision Flag
Link copied to clipboard
Retrieves the collision flag for the current tile from the provided ICollisionMap.
distance To
Link copied to clipboard
Calculates the euclidean distance between the Tile and the given Locatable.
draw Collisions
Link copied to clipboard
Draw the collisions of the tile on the map The sides are colored depending on whether or not that side is blocked. If the complete tile is blocked, all sides are automatically colored red
draw On Screen
Link copied to clipboard
fun drawOnScreen(g: Graphics, text: String? = null, outlineColor: Int? = Color.GREEN, fillColor: Int? = null)
Content copied to clipboard
Draw the edges of the tile on the screen with the given outlineColor //TODO Add graphics.fillPolygon
is Rendered
Link copied to clipboard
matrix
Link copied to clipboard
Constructs a TileMatrix for the given Tile.