Checkstyle

This commit is contained in:
Arne Keller 2020-03-06 09:10:51 +01:00
parent 2649cd85e2
commit 7c3f57caae
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,6 @@ package edu.kit.informatik.model;
import edu.kit.informatik.ui.InvalidInputException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;

View File

@ -120,10 +120,20 @@ public final class Track extends Rail {
|| connectsTo(position) && getDirectionFrom(position).equals(direction);
}
/**
* Get the start position of this track.
*
* @return start position of this track
*/
public Vector2D getStart() {
return new Vector2D(start);
}
/**
* Get the end position of this track.
*
* @return end position of this track
*/
public Vector2D getEnd() {
return new Vector2D(end);
}