Rydder opp i BoardActiveScreen

Legger til manglende kommentar for klasse
Legger til mellomrom på begge sider av matematiske tegn
This commit is contained in:
Kristian Knarvik 2020-04-07 13:34:45 +02:00
parent 5c3d6bcd5e
commit 95f3d3dd3e

View File

@ -21,6 +21,9 @@ import inf112.fiasko.roborally.utility.TextureConverterUtil;
import java.util.List; import java.util.List;
/**
* This screen shows the game board in real time
*/
public class BoardActiveScreen extends AbstractScreen implements InputProcessor { public class BoardActiveScreen extends AbstractScreen implements InputProcessor {
private final RoboRallyWrapper roboRallyWrapper; private final RoboRallyWrapper roboRallyWrapper;
private final OrthographicCamera camera; private final OrthographicCamera camera;
@ -35,7 +38,7 @@ public class BoardActiveScreen extends AbstractScreen implements InputProcessor
private final int viewPortHeight = 12 * tileDimensions; private final int viewPortHeight = 12 * tileDimensions;
private final Viewport viewport; private final Viewport viewport;
public BoardActiveScreen(final RoboRallyWrapper roboRallyWrapper) { BoardActiveScreen(final RoboRallyWrapper roboRallyWrapper) {
this.roboRallyWrapper = roboRallyWrapper; this.roboRallyWrapper = roboRallyWrapper;
camera = new OrthographicCamera(); camera = new OrthographicCamera();
@ -78,13 +81,13 @@ public class BoardActiveScreen extends AbstractScreen implements InputProcessor
} }
@Override @Override
public boolean keyDown(int keycode) { public boolean keyDown(int keyCode) {
return false; return false;
} }
@Override @Override
public boolean keyUp(int keycode) { public boolean keyUp(int keyCode) {
if (keycode == Input.Keys.HOME) { if (keyCode == Input.Keys.HOME) {
IDrawableGame temp = roboRallyWrapper.roboRallyGame; IDrawableGame temp = roboRallyWrapper.roboRallyGame;
roboRallyWrapper.roboRallyGame = debugGame; roboRallyWrapper.roboRallyGame = debugGame;
this.debugGame = temp; this.debugGame = temp;