aboutsummaryrefslogtreecommitdiff
path: root/week09/Exercise3/TrainNetwork.h
diff options
context:
space:
mode:
Diffstat (limited to 'week09/Exercise3/TrainNetwork.h')
-rw-r--r--week09/Exercise3/TrainNetwork.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/week09/Exercise3/TrainNetwork.h b/week09/Exercise3/TrainNetwork.h
new file mode 100644
index 0000000..2d40879
--- /dev/null
+++ b/week09/Exercise3/TrainNetwork.h
@@ -0,0 +1,12 @@
+#pragma once
+#include "Train.h"
+
+class TrainNetwork {
+ char id[8];
+ Train trains[512];
+ bool collided[512];
+
+public:
+ bool HaveCollided(int index1, int index2);
+ int RunTrains();
+};