mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-27 11:44:42 +02:00
Forbedrer kodestil og fjerner en unødvendig metode
This commit is contained in:
@ -27,9 +27,4 @@ public class RoboRallyWrapper extends Game {
|
||||
public void dispose() {
|
||||
batch.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
super.render(); //important!
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public class Robot {
|
||||
* Gets the robot's power-down status
|
||||
* @return Whether the robot is currently in power-down
|
||||
*/
|
||||
public Boolean isInPowerDown(){
|
||||
public Boolean isInPowerDown() {
|
||||
return inPowerDown;
|
||||
}
|
||||
|
||||
@ -144,7 +144,9 @@ public class Robot {
|
||||
* Gets the amount of life a robot has 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
|
||||
|
@ -7,7 +7,6 @@ import inf112.fiasko.roborally.element_properties.WallType;
|
||||
* This class represents a wall
|
||||
*/
|
||||
public class Wall {
|
||||
|
||||
private final WallType wallType;
|
||||
private final Direction direction;
|
||||
|
||||
@ -36,7 +35,7 @@ public class Wall {
|
||||
* Gets the direction of the wall
|
||||
* @return The direction of the wall
|
||||
*/
|
||||
public Direction getDirection(){
|
||||
public Direction getDirection() {
|
||||
return direction;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user