Struct sc2::MeleeBuilder [−][src]
pub struct MeleeBuilder { /* fields omitted */ }Build a Melee coordinator.
Methods
impl MeleeBuilder[src]
impl MeleeBuilderpub fn new() -> Self[src]
pub fn new() -> SelfStart building a Melee coordinator.
pub fn launcher_settings(self, settings: LauncherSettings) -> Self[src]
pub fn launcher_settings(self, settings: LauncherSettings) -> SelfThe settings for the launcher.
pub fn one_and_done(self, game: GameSetup) -> Self[src]
pub fn one_and_done(self, game: GameSetup) -> SelfPlay one game with the given settings.
pub fn repeat_forever(self, game: GameSetup) -> Self[src]
pub fn repeat_forever(self, game: GameSetup) -> SelfKeep restarting game with the given settings.
pub fn step_interval(self, steps: u32) -> Self[src]
pub fn step_interval(self, steps: u32) -> SelfStep the game instance with a discrete interval
pub fn step_realtime(self) -> Self[src]
pub fn step_realtime(self) -> SelfStep the bot as fast as possible
pub fn break_on_ctrlc(self, flag: bool) -> Self[src]
pub fn break_on_ctrlc(self, flag: bool) -> SelfStop running upon CTRL-C.
this is only necessary with Wine. CTRL-C doesn't seem to kill it for some reason by default.
pub fn add_player<T>(self, player: T) -> Self where
T: MeleeCompetitor + Sized + 'static, [src]
pub fn add_player<T>(self, player: T) -> Self where
T: MeleeCompetitor + Sized + 'static, Add a player to the Melee coordinator.
pub fn handle(self, handle: &Handle) -> Self[src]
pub fn handle(self, handle: &Handle) -> SelfProvide a handle to spawn background tasks.
pub fn create(self) -> Result<Melee>[src]
pub fn create(self) -> Result<Melee>Build the Melee coordinator.
Auto Trait Implementations
impl !Send for MeleeBuilder
impl !Send for MeleeBuilderimpl !Sync for MeleeBuilder
impl !Sync for MeleeBuilder