Commit Graph

29 Commits

Author SHA1 Message Date
Arne Keller
e41badefd9 Use a map for storing trains 2020-02-17 14:11:55 +01:00
Arne Keller
bb9d014508 Checkstyle 2020-02-17 13:59:42 +01:00
Arne Keller
efcd3a721b Make Command an abstract class 2020-02-17 12:33:26 +01:00
Arne Keller
fbf80103be Checkstyle 2020-02-17 11:19:56 +01:00
Arne Keller
3f1594263e Checkstyle 2020-02-17 11:00:15 +01:00
Arne Keller
cdc71c8253 Checkstyle 2020-02-17 10:39:26 +01:00
Arne Keller
48b4562bde Checkstyle 2020-02-17 10:14:19 +01:00
Arne Keller
4d23894509 Add more tests 2020-02-17 09:46:00 +01:00
Arne Keller
2746b9e7cf Correctly handle placing already placed trains and correctly handle small trains on larger rails 2020-02-17 09:43:54 +01:00
Arne Keller
9191028934 Correctly derail 2020-02-16 19:42:27 +01:00
Arne Keller
fdedb5e001 Fix NPE 2020-02-16 19:21:07 +01:00
Arne Keller
4ffb3a5665 Refactor rail network in own class 2020-02-16 16:38:25 +01:00
Arne Keller
a84cb80288 Fix compile error 2020-02-16 16:25:19 +01:00
Arne Keller
07bc781c3d Skip comments instead of exiting 2020-02-16 16:25:01 +01:00
Arne Keller
9aa8cc2384 Reorganize code 2020-02-16 15:01:33 +01:00
Arne Keller
bfccc89237 Checkstyle 2020-02-16 14:57:54 +01:00
Arne Keller
d446628f35 Checkstyle 2020-02-15 17:53:19 +01:00
Arne Keller
3610cfac8d Checkstyle 2020-02-15 17:33:08 +01:00
Arne Keller
b24b7cd83f Make command an interface 2020-02-15 16:51:34 +01:00
Arne Keller
972000204f Checkstyle 2020-02-15 16:38:54 +01:00
Arne Keller
9cc4ba0015 Checkstyle 2020-02-15 16:11:13 +01:00
Arne Keller
49e2e65908 Checkstyle 2020-02-15 16:07:49 +01:00
Arne Keller
cb9c82ecdf Delete unused code 2020-02-15 15:55:51 +01:00
Arne Keller
ccca59fc4a Checkstyle 2020-02-15 15:55:20 +01:00
Arne Keller
6ba920c82d Use enums more/better 2020-02-15 15:50:55 +01:00
Arne Keller
ac089109b2 Add javadoc 2020-02-15 15:44:07 +01:00
Arne Keller
1e8026216a Remove unused code 2020-02-15 15:41:54 +01:00
Arne Keller
16eae42fa3 Train collision checking fixes 2020-02-15 15:24:31 +01:00
Arne Keller
aa547d3568 Initial commit 2020-02-15 15:17:23 +01:00