public final class TextureConverterUtil
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(Particle particle)Gets the texture representing the particle | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(ProgrammingCard card)Gets the texture representing the programming card | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(Robot robot)Gets the texture representing the robot | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(RobotID robotID)Gets the texture representing the robot id | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(Tile tile)Gets the texture representing the tile | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | convertElement(Wall wall)Gets the texture representing the tile | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | getDamageTokenCriticalTexture()Returns the texture to use to display damage tokens | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | getDamageTokenTexture()Returns the texture to use to display damage tokens | 
| static java.util.List<com.badlogic.gdx.utils.Disposable> | getDisposableElements()Gets a list of all disposable elements which should be disposed when the software closes | 
| static com.badlogic.gdx.graphics.g2d.TextureRegion | getLifeTexture()Returns the texture to use to display lives | 
| static boolean | hasRotatedTexture(Particle particle)Checks whether a particle has textures for different rotations
 For a particle without a rotated texture, the texture needs to be rotated when rendering. | 
| static boolean | hasRotatedTexture(Tile tile)Checks whether a tile has textures for different rotations
 For a tile without a rotated texture, the texture needs to be rotated when rendering. | 
| static boolean | hasRotatedTexture(Wall wall)Checks whether a wall has textures for different rotations
 For a wall without a rotated texture, the texture needs to be rotated when rendering. | 
public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(ProgrammingCard card)
card - The card to drawpublic static com.badlogic.gdx.graphics.g2d.TextureRegion getDamageTokenCriticalTexture()
public static com.badlogic.gdx.graphics.g2d.TextureRegion getDamageTokenTexture()
public static com.badlogic.gdx.graphics.g2d.TextureRegion getLifeTexture()
public static java.util.List<com.badlogic.gdx.utils.Disposable> getDisposableElements()
public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(Tile tile)
tile - The tile to drawpublic static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(Particle particle)
particle - The particle to drawpublic static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(Wall wall)
wall - The wall to drawpublic static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(Robot robot)
robot - The robot to drawpublic static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(RobotID robotID)
robotID - The id of the robot to drawpublic static boolean hasRotatedTexture(Tile tile)
For a tile without a rotated texture, the texture needs to be rotated when rendering.
tile - The tile to checkpublic static boolean hasRotatedTexture(Wall wall)
For a wall without a rotated texture, the texture needs to be rotated when rendering.
wall - The wall to checkpublic static boolean hasRotatedTexture(Particle particle)
For a particle without a rotated texture, the texture needs to be rotated when rendering.
particle - The particle to check