-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.h
31 lines (23 loc) · 949 Bytes
/
train.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*************************************************************************
Header File : train.h
Author - Date : Efstathios Siatras - 18/12/2017
Purpose : Header file of class Train
*************************************************************************/
#ifndef TRAIN_H
#define TRAIN_H
#include "waggon.h"
class Train {
private:
int remainingStations; // Current remaining stations
const int totalWaggons; // Total number of waggons
Waggon **waggonsArray; // Waggons of the train ; An array (size of 'totalWaggons') of pointers to Waggons
int money; // Current money collected
const int fullFine; // Full fine
const int reducedFine; // Reduced fine
public:
Train(const int & = 10, const int & = 10, const int & = 50, const int & = 100, const int & = 50); // Constructor
~Train(); // Destructor
void operate(); // Operates the train
void printStatistics() const; // Prints statistics about the train
};
#endif