Forbedrer kodestil

This commit is contained in:
Kristian Knarvik 2020-02-04 19:57:20 +01:00
parent 8b2740e7c7
commit 6bc58a29d3
3 changed files with 4 additions and 11 deletions

View File

@ -16,13 +16,6 @@ public class Game implements IDrawableGame {
private final int BOARD_WIDTH = TILE_SIZE * TILE_NUMBER;
private final int BOARD_HEIGHT = TILE_SIZE * TILE_NUMBER;
/**
* Instantiates a new Game object
*/
public Game () {
}
@Override
public int getWidth() {
return BOARD_WIDTH;

View File

@ -9,11 +9,11 @@ import static org.junit.Assert.*;
public class DrawableObjectTest {
DrawableObject testMinArg;
DrawableObject testMaxArg;
private DrawableObject testMinArg;
private DrawableObject testMaxArg;
@Before
public void setUp() throws Exception {
public void setUp() {
testMinArg = new DrawableObject(5,5, GameTexture.SLOW_TRANSPORT_BAND);
testMaxArg = new DrawableObject(6, 6, GameTexture.ROBOT, 90, 50, 50, true, true);
}

View File

@ -9,7 +9,7 @@ import org.junit.Before;
import org.junit.Test;
public class GameTest {
IDrawableGame game;
private IDrawableGame game;
@Before
public void setUp() {