mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 01:15:05 +00:00
Checkstyle
This commit is contained in:
parent
2649cd85e2
commit
7c3f57caae
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user