-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapLoaderMain.cpp
More file actions
36 lines (30 loc) · 1010 Bytes
/
MapLoaderMain.cpp
File metadata and controls
36 lines (30 loc) · 1010 Bytes
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
//
// Created by Jingyi Lin on 2021-02-05.
//
#include <iostream>
#include "MapLoader.h"
#include "MapLoaderMain.h"
using std::cout,std::endl;
int mapLoader::main() {
MapLoader *mapLoader,*mapLoader_invalid, *mapLoader_valid, *mapLoader_copy;
try {
cout << "Loading valid map"<<endl;
mapLoader = new MapLoader();
[[maybe_unused]] Map *mapptr = mapLoader->loadMap("..\\Maps\\Lsahpe.map");
mapptr->printContinentAdjacencyList();
mapptr->printTerritoryAdjacencyList();
mapptr->validate();
//mapLoader->getGameMap()->PrintContinentMatrix();
//mapLoader->getGameMap()->PrintTerritoryMatrix();
//mapLoader->getGameMap()->validate(mapLoader->getGameMap());
}
catch (const std::string e) {
cout << e<<endl;
}
delete mapLoader,mapLoader_invalid,mapLoader_valid,mapLoader_copy;
mapLoader= nullptr;
mapLoader_invalid= nullptr;
mapLoader_valid= nullptr;
mapLoader_copy = nullptr;
return 0;
};