![]() |
SC2API
An API for AI for StarCraft II
|
Setup for a player in a game. More...
#include <sc2_gametypes.h>
Public Member Functions | |
PlayerSetup (PlayerType in_type, Race in_race, Agent *in_agent=nullptr, const std::string &in_player_name="", Difficulty in_difficulty=Easy, AIBuild in_ai_build=RandomBuild) | |
Public Attributes | |
PlayerType | type |
Player can be a Participant (usually an agent), Computer (in-built AI) or Observer. | |
Agent * | agent |
Agent, if one is available. | |
std::string | player_name |
Name of this player. | |
Race | race |
Race: Terran, Zerg or Protoss. Only for playing against the built-in AI. | |
Difficulty | difficulty |
Difficulty: Only for playing against the built-in AI. | |
AIBuild | ai_build |
Build type, used by computer opponent. | |
Setup for a player in a game.