-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildList.h
51 lines (46 loc) · 1 KB
/
BuildList.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* BuildList.h
*
* Created on: Feb 23, 2012
* Author: Toby
*/
#ifndef BUILDLIST_H_
#define BUILDLIST_H_
#include "E.h"
#include "NameList.h"
#include "Event.h"
#include "GameState.h"
#include "BuildEval.h"
#include "OF.h"
using namespace std;
class BuildList {
public:
BuildList(OF *oF);
BuildList(BuildList *bl);
virtual ~BuildList();
void evaluateBuild();
bool legalBuild();
void mutate();
NameList* getList() const;
void setPossible(GameState *gs);
Info get(unsigned long i);
void setIndex(double i);
double getFitness() const;
double getIndex() const;
unsigned long size();
unsigned long getEventNum();
void printBuild();
void lengthenEntityList();
void generateRandomList();
string getSc2PlannerLink();
// void pureRandomList();
void rollBack(BuildEval *be);
void add(Info item);
private:
OF *oF;
NameList *entityList;
vector<Event> events;
double fitness;
double index;
};
#endif /* BUILDLIST_H_ */