-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.cpp
More file actions
50 lines (43 loc) · 1.35 KB
/
test.cpp
File metadata and controls
50 lines (43 loc) · 1.35 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
/* Test file for World class. */
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <algorithm>
#include <sstream>
#include <fstream>
#include "macros.h"
#include "pcard.h"
#include "icard.h"
#include "city.h"
#include "hero.h"
#include "world.h"
#include "contplanner.h"
#include "dispatcher.h"
#include "medic.h"
#include "opexpert.h"
#include "qspecialist.h"
#include "researcher.h"
#include "scientist.h"
int main()
{
std::cout << "Testing the Contagion game logic with a text UI!\n";
std::cout << "First, construct the World.\n";
std::cout << "How many epidemics do you want? 4 for easy, 5 for medium, 6 for hard.\n";
int number_of_epidemics;
std::cin >> number_of_epidemics;
World new_world(number_of_epidemics);
std::cout << "I have just called the Constructor with " << number_of_epidemics << " epidemics.\n";
std::cout << "Now I will load the city data into the World.\n";
new_world.load_city_data("cities.dat");
std::cout << "And then I will load the event cards data.\n";
new_world.load_eventcards_data("eventcards.dat");
std::cout << "Then I load the heroes data.\n";
new_world.load_hero_data("heroes.dat");
std::cout << "Then I run the Setup for the world.\n";
new_world.setup();
new_world.render_world_ascii();
std::cout << "Starting the main game loop.\n";
new_world.game_loop();
return 0;
}