mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final1.git
synced 2024-11-24 01:15:05 +00:00
Fix switch creation id issue
This commit is contained in:
parent
e0aea8543c
commit
b1cee5e796
@ -35,8 +35,8 @@ public final class Switch extends Rail {
|
|||||||
*/
|
*/
|
||||||
public Switch(Vector2D start, Vector2D end1, Vector2D end2, int id) throws InvalidInputException {
|
public Switch(Vector2D start, Vector2D end1, Vector2D end2, int id) throws InvalidInputException {
|
||||||
super(id);
|
super(id);
|
||||||
this.positionOne = new Track(start, end1, -1);
|
this.positionOne = new Track(start, end1, 1);
|
||||||
this.positionTwo = new Track(start, end2, -1);
|
this.positionTwo = new Track(start, end2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user