TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Classes | Public Member Functions | Public Attributes | List of all members
cherrypi::CombatSim Class Reference

Predicts the outcome of a hypothetical fight by simulating unit movements/attacks. More...

#include <combatsim.h>

Classes

struct  SimUnit
 
struct  Team
 

Public Member Functions

bool addUnit (Unit *u)
 
void run (int frames)
 

Public Attributes

double speedMult = 1.0
 
std::array< Team, 2 > teams
 

Detailed Description

Predicts the outcome of a hypothetical fight by simulating unit movements/attacks.

Uses a high speed/low precision approximation of Brood War mechanics, ignoring elements like collisions, splash damage, accleration, turn rates, attack animations, and spells.

Member Function Documentation

bool cherrypi::CombatSim::addUnit ( Unit u)
void cherrypi::CombatSim::run ( int  frames)

Member Data Documentation

double cherrypi::CombatSim::speedMult = 1.0
std::array<Team, 2> cherrypi::CombatSim::teams

The documentation for this class was generated from the following files: