Flytter ting til korrekte pakker og forbedrer Tile og Wall

Fikser kommentarer, mellomrom og variabelnavn i Tile og Wall
Flytter IGrid, Robot og Wall til objects
Flytter tester til korresponderende pakker
This commit is contained in:
2020-02-20 13:12:18 +01:00
parent 2eac95fef9
commit a6a0045786
14 changed files with 73 additions and 67 deletions

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.element_properties;
import inf112.fiasko.roborally.element_properties.Direction;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.element_properties;
import inf112.fiasko.roborally.element_properties.Position;
import org.junit.Before;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.element_properties;
import inf112.fiasko.roborally.element_properties.TileType;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.element_properties;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.element_properties.WallType;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.game;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@ -1,4 +1,4 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.objects.DrawableObject;
import inf112.fiasko.roborally.element_properties.GameTexture;

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Position;
import inf112.fiasko.roborally.element_properties.Robot;
import inf112.fiasko.roborally.objects.Robot;
import static org.junit.Assert.assertEquals;
import org.junit.Test;

View File

@ -1,8 +1,7 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.TileType;
import inf112.fiasko.roborally.objects.Tile;
import org.junit.Before;
import org.junit.Test;
@ -38,4 +37,9 @@ public class TileTest {
public void getDirectionFromTile2() {
assertEquals(Direction.SOUTH, tile2.getDirection());
}
@Test (expected = IllegalArgumentException.class)
public void invalidTileThrowsException() {
new Tile(TileType.TRANSPORT_BAND_FAST, Direction.NORTH_EAST);
}
}

View File

@ -1,7 +1,7 @@
package inf112.fiasko.roborally;
package inf112.fiasko.roborally.objects;
import inf112.fiasko.roborally.element_properties.Direction;
import inf112.fiasko.roborally.element_properties.Wall;
import inf112.fiasko.roborally.objects.Wall;
import inf112.fiasko.roborally.element_properties.WallType;
import static org.junit.Assert.assertEquals;
import org.junit.Test;