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

#include <scenariospecification.h>

Public Member Functions

FixedScenarioaddTech (int player, torchcraft::BW::TechType tech)
 
FixedScenarioaddUpgrade (int player, torchcraft::BW::UpgradeType upgrade, int level=1)
 
std::vector< SpawnPosition > & allies ()
 
std::vector< SpawnPosition > & enemies ()
 

Public Attributes

std::string name
 
std::string map {"test/maps/micro-empty2.scm"}
 
std::function< std::unique_ptr< Reward >)> reward
 
std::vector< FixedScenarioPlayerplayers = {{}, {}}
 
std::vector< LambdaModule::StepFunctionStatestepFunctions
 

Member Function Documentation

FixedScenario& cherrypi::FixedScenario::addTech ( int  player,
torchcraft::BW::TechType  tech 
)
inline
FixedScenario& cherrypi::FixedScenario::addUpgrade ( int  player,
torchcraft::BW::UpgradeType  upgrade,
int  level = 1 
)
inline
std::vector<SpawnPosition>& cherrypi::FixedScenario::allies ( )
inline
std::vector<SpawnPosition>& cherrypi::FixedScenario::enemies ( )
inline

Member Data Documentation

std::string cherrypi::FixedScenario::map {"test/maps/micro-empty2.scm"}
std::string cherrypi::FixedScenario::name
std::vector<FixedScenarioPlayer> cherrypi::FixedScenario::players = {{}, {}}
std::function<std::unique_ptr<Reward>)> cherrypi::FixedScenario::reward
Initial value:
= []() {
return combatReward();
}
std::vector<LambdaModule::StepFunctionState> cherrypi::FixedScenario::stepFunctions

The documentation for this struct was generated from the following file: