Struct sc2::ai::OpponentBuilder [−][src]
pub struct OpponentBuilder { /* fields omitted */ }
Build a built-in AI opponent.
Methods
impl OpponentBuilder
[src]
impl OpponentBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Create the builder.
pub fn race(self, race: Race) -> Self
[src]
pub fn race(self, race: Race) -> Self
Set the race of the AI (default is Random).
pub fn difficulty(self, difficulty: Difficulty) -> Self
[src]
pub fn difficulty(self, difficulty: Difficulty) -> Self
Set the difficulty of the AI (default is Medium).
Auto Trait Implementations
impl Send for OpponentBuilder
impl Send for OpponentBuilder
impl Sync for OpponentBuilder
impl Sync for OpponentBuilder