Commit d513f1d7 authored by Theodore Lopez's avatar Theodore Lopez

minor changes

parent ff0221e7
...@@ -5,6 +5,7 @@ import static org.junit.Assert.*; ...@@ -5,6 +5,7 @@ import static org.junit.Assert.*;
import org.junit.Test; import org.junit.Test;
import; import;
import; import;
import map_generation.tiles.TilePropertyVector; import map_generation.tiles.TilePropertyVector;
import map_generation.tiles.TilePropertyVector.TileProperty; import map_generation.tiles.TilePropertyVector.TileProperty;
...@@ -35,7 +36,7 @@ public class PointTest { ...@@ -35,7 +36,7 @@ public class PointTest {
@Test @Test
public static void collision(){ public static void collision(){
/*construit une nouvelle salle pour vérifier la propriété de collision des murs*/ /*construit une nouvelle salle pour vérifier la propriété de collision des murs*/
Map map=SurfacesMapGeneration.simpleRoom(12); Map map=MapGeneration.simpleRoom(12);
TilePropertyVector tpv=new TilePropertyVector().addProperty(TileProperty.SOLID); TilePropertyVector tpv=new TilePropertyVector().addProperty(TileProperty.SOLID);
assertFalse(Point.constructFromMap(11, 11).canExist(map,tpv)); assertFalse(Point.constructFromMap(11, 11).canExist(map,tpv));
assertTrue(Point.constructFromMap(5, 5).canExist(map,tpv)); assertTrue(Point.constructFromMap(5, 5).canExist(map,tpv));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment