Skip to content
Snippets Groups Projects
Commit 55d7f863 authored by Sarah CHERCHEM's avatar Sarah CHERCHEM
Browse files

Create the interface BoardProperties

parent 262bcd35
No related branches found
No related tags found
No related merge requests found
package model;
public interface BoardProperties {
}
package model; package model;
import util.Position; import util.Position;
import util.TargetStrategy;
import java.util.*; import java.util.*;
......
package model; package util;
import util.Position; import util.Position;
...@@ -12,7 +12,7 @@ public class TargetStrategy { ...@@ -12,7 +12,7 @@ public class TargetStrategy {
* @param targets positions that are targeted. * @param targets positions that are targeted.
* @return the position next to the current position that is on the path to the closest target. * @return the position next to the current position that is on the path to the closest target.
*/ */
Position neighborClosestToFire(Position position, Collection<Position> targets, public Position neighborClosestToFire(Position position, Collection<Position> targets,
Map<Position, List<Position>> neighbors) { Map<Position, List<Position>> neighbors) {
Set<Position> seen = new HashSet<Position>(); Set<Position> seen = new HashSet<Position>();
HashMap<Position, Position> firstMove = new HashMap<Position, Position>(); HashMap<Position, Position> firstMove = new HashMap<Position, Position>();
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<HBox styleClass="background" stylesheets="@DarkTheme.css" <HBox styleClass="background" stylesheets="@DarkTheme.css"
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
fx:controller="controller.Controller"> fx:controller="controller.Controller" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity">
<VBox> <VBox>
<Separator maxHeight="-Infinity" maxWidth="-Infinity" <Separator maxHeight="-Infinity" maxWidth="-Infinity"
prefHeight="24.0" prefWidth="200.0"/> prefHeight="24.0" prefWidth="200.0"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment