mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Forbedrer kodestil
This commit is contained in:
parent
8b2740e7c7
commit
6bc58a29d3
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class GameTest {
|
||||
IDrawableGame game;
|
||||
private IDrawableGame game;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user