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;
/**
* This screen shows the game board in real time
*/
public class BoardActiveScreen extends AbstractScreen implements InputProcessor {
private final RoboRallyWrapper roboRallyWrapper;
private final OrthographicCamera camera;
@ -35,7 +38,7 @@ public class BoardActiveScreen extends AbstractScreen implements InputProcessor
private final int viewPortHeight = 12 * tileDimensions;
private final Viewport viewport;
public BoardActiveScreen(final RoboRallyWrapper roboRallyWrapper) {
BoardActiveScreen(final RoboRallyWrapper roboRallyWrapper) {
this.roboRallyWrapper = roboRallyWrapper;
camera = new OrthographicCamera();
@ -78,13 +81,13 @@ public class BoardActiveScreen extends AbstractScreen implements InputProcessor
}
@Override
public boolean keyDown(int keycode) {
public boolean keyDown(int keyCode) {
return false;
}
@Override
public boolean keyUp(int keycode) {
if (keycode == Input.Keys.HOME) {
public boolean keyUp(int keyCode) {
if (keyCode == Input.Keys.HOME) {
IDrawableGame temp = roboRallyWrapper.roboRallyGame;
roboRallyWrapper.roboRallyGame = debugGame;
this.debugGame = temp;