-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulation.h
More file actions
58 lines (44 loc) · 1.19 KB
/
Simulation.h
File metadata and controls
58 lines (44 loc) · 1.19 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef SIMULATION_H
#define SIMULATION_H
#include "Ground.h"
#include "World.h"
// class gia ti prosomoiwsi
class Simulation {
private:
// pointer sto world tis prosomoiwsis
World *world;
// sinolikes posotites sistatikwn sto kosmo
int total_world_palladio;
int total_world_iridio;
int total_world_leukoxriso;
// goal gia kathe sistatiko
int palladio_goal;
int iridio_goal;
int leukoxriso_goal;
// vector me ta codes twn oximatwn pou ehoun vlavi
std::vector<int> damaged_vehicles;
// giros tis prosomoiwsis
int simulation_round;
public:
// constructor (diastasi kosmou, arithmos oximatwn apo kathe katigoria, goals sistatikwn)
Simulation(int, int, int, int, int);
// trekse ena giro
void run_one_round();
// trekse 5 girous
void run_five_rounds();
// elegkse termatismo prosomoiwsis
void checktermination();
// functions gia plirofories gia kosmo, oximata
void simulation_info();
void showworld();
void showdamaged();
void showgroundspotinfo(int, int);
void baseinfo();
void vehiclesinfo();
void vehicleinfo(int);
// prosthese, ftiakse kai prokalese vlavi se oximata tou kosmou
void addvehicle(int, int, int);
void fixvehicle(int);
void breakvehicle(int);
};
#endif