Autoformaterer klasser med formateringsfeil

This commit is contained in:
Kristian Knarvik 2020-04-22 12:48:33 +02:00
parent fada713d19
commit 6394bd9655
4 changed files with 8 additions and 9 deletions

View File

@ -93,12 +93,12 @@ public class CardChoiceScreen extends InputAdapter implements Screen {
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
if (chosenCards.size() == maxCards) {
List<ProgrammingCard> oldProgram = roboRallyWrapper.roboRallyGame.getProgram();
int lockedCardsInt = 5-maxCards;
int lockedCardsInt = 5 - maxCards;
List<ProgrammingCard> newProgram = getCards();
for(int i = 4; i>(4-lockedCardsInt);i--){
for (int i = 4; i > (4 - lockedCardsInt); i--) {
newProgram.add(oldProgram.get(i));
}
System.out.println("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuasdasdasda234234234: "+newProgram.size());
System.out.println("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuasdasdasda234234234: " + newProgram.size());
System.out.println(newProgram);
roboRallyWrapper.roboRallyGame.setProgram(newProgram);

View File

@ -58,10 +58,9 @@ public class PowerDownScreen extends AbstractScreen {
camera.update();
roboRallyWrapper.batch.setProjectionMatrix(camera.combined);
String descriptiontext;
if(roboRallyWrapper.roboRallyGame.getGameState()==GameState.CHOOSING_POWER_DOWN){
if (roboRallyWrapper.roboRallyGame.getGameState() == GameState.CHOOSING_POWER_DOWN) {
descriptiontext = "click the button to enter powerdown next round";
}
else{
} else {
descriptiontext = "continue powerdown?";
}
int elapsedTime = (int) Math.floor((System.currentTimeMillis() - startTime) / 1000f);

View File

@ -16,7 +16,8 @@ public class ErrorResponse {
this.errorMessage = errorMessage;
this.critical = false;
}
public ErrorResponse(){
public ErrorResponse() {
}

View File

@ -202,7 +202,6 @@ public class PhaseTest {
}
@Test
public void robotFiresLaserAndHitsARobotDoesNotDamageRobotOnOtherSide() throws InterruptedException {
FakeGame testGame = new FakeGame();