aboutsummaryrefslogtreecommitdiff
path: root/week09/Exercise3/TrainNetwork.h
blob: ca0296ee79b770ce18c0dc68df097554ca79dc54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include "Train.h"

class TrainNetwork {
	char id[8];
	Train trains[512];
	bool collided[512];

public:
	TrainNetwork(const char id[8], Train trains[512]);
	bool HaveCollided(int index1, int index2);
	int RunTrains();
};