java.lang.Object
dev.aurumbyte.sypherengine.core.graphics.tiles.ImageTile
Getting specific Images from a tileset
- Since:
- v0.3.0
- Author:
- AurumByte
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) javafx.scene.image.ImageThe tileset image(package private) intThe width and height of a tile(package private) intThe width and height of a tile
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjavafx.scene.image.ImagegetImageTile(int tileX, int tileY) The abstract initialization method, to be overridden by the userintGetting the height of the tilejavafx.scene.image.Imagereturning the TilesetintGetting the width of the tilevoidsetTileHeight(int tileHeight) Setting the height of the tilevoidsetTileSet(javafx.scene.image.Image image) Setting the tilesetvoidsetTileWidth(int tileWidth) Setting the width of the tile
- 
Field Details- 
imagejavafx.scene.image.Image imageThe tileset image
- 
tileWidthint tileWidthThe width and height of a tile
- 
tileHeightint tileHeightThe width and height of a tile
 
- 
- 
Constructor Details- 
ImageTilepublic ImageTile(javafx.scene.image.Image image, int tileWidth, int tileHeight) The abstract initialization method, to be overridden by the user - Parameters:
- image- The tileset
- tileWidth- The width of a tile
- tileHeight- The height of a tile
- Since:
- 0.3.0
 
- 
ImageTileThe abstract initialization method, to be overridden by the user - Parameters:
- path- The path to the tileset
- tileWidth- The width of a tile
- tileHeight- The height of a tile
- Since:
- 0.3.0
 
 
- 
- 
Method Details- 
getImageTilepublic javafx.scene.image.Image getImageTile(int tileX, int tileY) The abstract initialization method, to be overridden by the user - Parameters:
- tileX- The tile count from left to right as per specified tile width
- tileY- The tile count from top to bottom as per specified tile height
- Since:
- 0.3.0
 
- 
getTileSetpublic javafx.scene.image.Image getTileSet()returning the Tileset - Since:
- 0.3.0
 
- 
getTileHeightpublic int getTileHeight()Getting the height of the tile - Since:
- 0.3.0
 
- 
getTileWidthpublic int getTileWidth()Getting the width of the tile - Since:
- 0.3.0
 
- 
setTileSetpublic void setTileSet(javafx.scene.image.Image image) Setting the tileset - Parameters:
- image- the tileset image
- Since:
- 0.3.0
 
- 
setTileHeightpublic void setTileHeight(int tileHeight) Setting the height of the tile - Parameters:
- tileHeight- the height of the tile to be set
- Since:
- 0.3.0
 
- 
setTileWidthpublic void setTileWidth(int tileWidth) Setting the width of the tile - Parameters:
- tileWidth- the width of the tile to be set
- Since:
- 0.3.0
 
 
-