-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommand.h
40 lines (36 loc) · 900 Bytes
/
Command.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
/*
* Command.h
*
* Created on: May 6, 2012
* Author: Toby
*/
#ifndef COMMAND_H_
#define COMMAND_H_
#include <vector>
#include "Producer.h"
//#include "Entity.h"
//#include "AllEntities.h"
//class Supplier;
class Command : public Producer {
public:
Command();
virtual ~Command();
void update(GameState *gs);
void complete(GameState *gs);
void reset();
void sendToMineMinerals(Entity *scv);
bool tryAttachRefinery();
Entity* getScv();
unsigned numberMining();
void setAttachedRefineries(int n); // TODO delete this
int getAttachedRefineries();
std::vector<Entity*> & getWorkersOnMinerals(); // delete this?
void transferWorkers(std::vector<Entity *> &workersOnMinerals);
int getProvidedSupply();
protected:
double mineralsMined(int n);
std::vector<Entity*> workersOnMinerals;
int attachedRefineries;
// int providedSupply;
};
#endif /* COMMAND_H_ */