Struct sc2::ComputerBuilder
[−]
[src]
pub struct ComputerBuilder { /* fields omitted */ }build a built-in AI opponent
Methods
impl ComputerBuilder[src]
pub fn new() -> Self[src]
create the builder
pub fn race(self, race: Race) -> Self[src]
set the race of the AI (default is Random)
pub fn difficulty(self, difficulty: Difficulty) -> Self[src]
set the difficulty of the AI (default is Medium)
pub fn create(self) -> Result<Computer>[src]
build the built-in AI