mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Forbedrer kodestil og fjerner en unødvendig metode
This commit is contained in:
parent
41a9647fa2
commit
c163d7d707
@ -27,9 +27,4 @@ public class RoboRallyWrapper extends Game {
|
|||||||
public void dispose() {
|
public void dispose() {
|
||||||
batch.dispose();
|
batch.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void render() {
|
|
||||||
super.render(); //important!
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,9 @@ public class Robot {
|
|||||||
* Gets the amount of life a robot has left.
|
* Gets the amount of life a robot has left.
|
||||||
* @return amount of life left
|
* @return amount of life left
|
||||||
*/
|
*/
|
||||||
public int getAmountOfLives() { return this.amountOfLives; }
|
public int getAmountOfLives() {
|
||||||
|
return this.amountOfLives;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes a copy of this robot with the same properties as this robot
|
* Makes a copy of this robot with the same properties as this robot
|
||||||
|
@ -7,7 +7,6 @@ import inf112.fiasko.roborally.element_properties.WallType;
|
|||||||
* This class represents a wall
|
* This class represents a wall
|
||||||
*/
|
*/
|
||||||
public class Wall {
|
public class Wall {
|
||||||
|
|
||||||
private final WallType wallType;
|
private final WallType wallType;
|
||||||
private final Direction direction;
|
private final Direction direction;
|
||||||
|
|
||||||
|
@ -17,8 +17,10 @@ public class DrawableObjectTest {
|
|||||||
|
|
||||||
private static final Texture textureSheet = new Texture(Gdx.files.internal("assets/tiles.png"));
|
private static final Texture textureSheet = new Texture(Gdx.files.internal("assets/tiles.png"));
|
||||||
private static final Texture robotsTexture = new Texture(Gdx.files.internal("assets/robots.png"));
|
private static final Texture robotsTexture = new Texture(Gdx.files.internal("assets/robots.png"));
|
||||||
public static final TextureRegion TEXTURE_MIN_ARG = new TextureRegion(textureSheet, 4*300, 0, 300, 300);
|
private static final TextureRegion TEXTURE_MIN_ARG = new TextureRegion(textureSheet, 4 * 300, 0,
|
||||||
public static final TextureRegion TEXTURE_MAX_ARG = new TextureRegion(robotsTexture, 0, 0, 64, 64);
|
300, 300);
|
||||||
|
public static final TextureRegion TEXTURE_MAX_ARG = new TextureRegion(robotsTexture, 0, 0,
|
||||||
|
64, 64);
|
||||||
public static final int X_POSITION_MIN_ARG = 5;
|
public static final int X_POSITION_MIN_ARG = 5;
|
||||||
public static final int Y_POSITION_MIN_ARG = 8;
|
public static final int Y_POSITION_MIN_ARG = 8;
|
||||||
public static final int X_POSITION_MAX_ARG = 6;
|
public static final int X_POSITION_MAX_ARG = 6;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user