TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
micromodel.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 "state.h"
11 
12 namespace cherrypi {
13 
14 struct MicroModel {
15  virtual void forward(State* state) = 0;
16  virtual MicroAction decode(Unit* unit) = 0;
17  virtual void onGameEnd(State* state) = 0;
18  virtual void onGameStart(State* state) = 0;
19 };
20 
21 } // namespace cherrypi
Game state.
Definition: state.h:42
virtual void forward(State *state)=0
virtual void onGameStart(State *state)=0
virtual MicroAction decode(Unit *unit)=0
Represents a decision of how to control a unit.
Definition: upc.h:135
Represents a unit in the game.
Definition: unitsinfo.h:35
virtual void onGameEnd(State *state)=0
Main namespace for bot-related code.
Definition: areainfo.cpp:17
Definition: micromodel.h:14