TileContainer

open class TileContainer

Ein TileContainer ist eine schachbrettartige Anordnung quadratischer Tiles.

Author

Michael Andonie

Constructors

Link copied to clipboard
constructor(numX: Int, numY: Int, tileWidth: Float, tileHeight: Float)
Erstellt einen leeren Tile-Container.
constructor(numX: Int, numY: Int, tileSize: Float)
Erstellt einen leeren Tile-Container für quadratische Tiles.

Functions

Link copied to clipboard
open fun getTile(x: Int, y: Int): Tile
Link copied to clipboard
open fun getTileCountX(): Int
Link copied to clipboard
open fun getTileCountY(): Int
Link copied to clipboard
open fun render(g: Graphics2D, pixelPerMeter: Float)
Link copied to clipboard
open fun setTile(x: Int, y: Int, tile: Tile)
Setzt das Tile an einer festen Position durch eine klare Bilddatei.