Package cl.cromer.azaraka.sprite
Class Sheet
- java.lang.Object
-
- cl.cromer.azaraka.sprite.Sheet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cl.cromer.azaraka.Constants
Constants.AIHeuristic, Constants.LogLevel, Constants.PlayerAIType
-
-
Field Summary
-
Fields inherited from interface cl.cromer.azaraka.Constants
AI_HEURISTIC, APPEND_LOGS, CELL_PIXELS, CHESTS, ENEMIES, ENEMY_AI, EXPORT_SCENE, FONT, FONT_SIZE, GENERATE_SCENE, GLOBAL_LOG, HORIZONTAL_CELLS, LOG_TO_FILE, OBSTACLES, PLAYER_AI, PRETTY_JSON, TITLE, VERTICAL_CELLS, VOLUME
-
-
Constructor Summary
Constructors Constructor Description Sheet(java.lang.String path, int height, int width)
Initialize the texture collection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
getTexture(int textureNumber)
Returns the selected texture-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cl.cromer.azaraka.Constants
getLogger, initializeLogger, random
-
-
-
-
Method Detail
-
getTexture
public java.awt.image.BufferedImage getTexture(int textureNumber) throws SheetException
Returns the selected texture- Parameters:
textureNumber
- The texture to get from the collection- Returns:
- Returns the current texture
- Throws:
SheetException
- Thrown when there are no images in the texture collection
-
-