TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
gatherer.h
1 /*
2  * Copyright (c) 2017-present, Facebook, Inc.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #pragma once
9 
10 #include "module.h"
11 #include "task.h"
12 #include "unitsinfo.h"
13 
14 #include <memory>
15 #include <vector>
16 
17 namespace cherrypi {
18 
19 /**
20  * Manages worker units for resource gathering.
21  *
22  * GathererModule is a thin orchestrator of GatherControllers.
23  * Most gathering logic happens in gathererassignments.cpp or
24  * gatherermicro.cpp
25  */
26 class GathererModule : public Module {
27  public:
29  virtual ~GathererModule() = default;
30 
31  virtual void step(State* s) override;
32 };
33 
34 } // namespace cherrypi
Game state.
Definition: state.h:42
GathererModule()
Definition: gatherer.h:28
virtual void step(State *s) override
Definition: gatherer.cpp:26
virtual ~GathererModule()=default
Manages worker units for resource gathering.
Definition: gatherer.h:26
Main namespace for bot-related code.
Definition: areainfo.cpp:17
Interface for bot modules.
Definition: module.h:30