TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
creategatherattack.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 <functional>
11 #include <list>
12 
13 #include "cherrypi.h"
14 #include "module.h"
15 
16 namespace cherrypi {
17 
18 struct UPCTuple;
19 
20 /**
21  * Generates separate, unspecific UPCTuples for Create, Gather and Delete/Move.
22  *
23  * This module should be used as the first or second module (after TopModule) in
24  * a Player.
25  */
27  public:
29 
30  virtual void step(State* s);
31 
32  private:
33  std::shared_ptr<UPCTuple> create_;
34  std::shared_ptr<UPCTuple> gather_;
35  std::shared_ptr<UPCTuple> attack_;
36 };
37 
38 } // namespace cherrypi
Game state.
Definition: state.h:42
Generates separate, unspecific UPCTuples for Create, Gather and Delete/Move.
Definition: creategatherattack.h:26
virtual void step(State *s)
Definition: creategatherattack.cpp:20
CreateGatherAttackModule()
Definition: creategatherattack.h:28
Main namespace for bot-related code.
Definition: areainfo.cpp:17
Interface for bot modules.
Definition: module.h:30