mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Autoformaterer klasser med formateringsfeil
This commit is contained in:
parent
fada713d19
commit
6394bd9655
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -16,7 +16,8 @@ public class ErrorResponse {
|
||||
this.errorMessage = errorMessage;
|
||||
this.critical = false;
|
||||
}
|
||||
public ErrorResponse(){
|
||||
|
||||
public ErrorResponse() {
|
||||
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,6 @@ public class PhaseTest {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void robotFiresLaserAndHitsARobotDoesNotDamageRobotOnOtherSide() throws InterruptedException {
|
||||
FakeGame testGame = new FakeGame();
|
||||
|
Loading…
x
Reference in New Issue
Block a user