-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAard-Vark.cpp
69 lines (54 loc) · 1.19 KB
/
Aard-Vark.cpp
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
59
60
61
62
63
64
65
//
// main.cpp
// BuildTool
//
// Created by Toby Suggate on 6/05/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
//#include "Config.h"
//#include "NameList.h"
#include "Population.h"
//#include "TestRuns.h"
//#include "F.h"
//#include "SearchParallel.h"
//for test()
#include "OF.h"
#include "GameLoop.h"
#include "NameList.h"
#include "Name.h"
#include <iostream>
#include "Scv.h"
#include "Barracks.h"
using namespace std;
void test() {
NameList *nl = new NameList();
nl->add(Info(E::SCV));
nl->add(Info(E::SCV));
nl->add(Info(E::SCV));
nl->add(Info(E::SCV));
nl->add(Info(E::SUPPLY_DEPOT));
OF *of = new OF();
GameLoop *gl = of->newGameLoop();
gl->runInstructions(nl);
cout << gl->getGameState()->getAe()->getCommands().at(0)->getWorkersOnMinerals().size() << endl;
}
int main() {
// test();
std::cout << "something" << std::endl;
Scv scv;
std::vector<Entity> v;
v.push_back(scv);
// Entity e = v.back();
Scv* s = static_cast<Scv*>(&(v.back()));
auto *b = new Barracks();
if (s->tryBuildEntity(b, 19))
{
std::cout << "true" << std::endl;
}
else
{
std::cout << "false" << std::endl;
}
// Population p;
// p.run();
}