TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
top.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 
12 namespace cherrypi {
13 
14 /**
15  * The first module run in each frame.
16  *
17  * Posts a single combined UPC tuple for all active units for other modules
18  * to consume.
19  */
20 class TopModule : public Module {
21  public:
22  TopModule() {}
23  virtual ~TopModule() = default;
24 
25  virtual void step(State* s);
26 };
27 
28 } // namespace cherrypi
Game state.
Definition: state.h:42
virtual ~TopModule()=default
TopModule()
Definition: top.h:22
The first module run in each frame.
Definition: top.h:20
Main namespace for bot-related code.
Definition: areainfo.cpp:17
virtual void step(State *s)
Definition: top.cpp:16
Interface for bot modules.
Definition: module.h:30