Struct sc2::MeleeBuilder [−][src]
pub struct MeleeBuilder { /* fields omitted */ }
Build a Melee coordinator.
Methods
impl MeleeBuilder
[src]
impl MeleeBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Start building a Melee coordinator.
pub fn launcher_settings(self, settings: LauncherSettings) -> Self
[src]
pub fn launcher_settings(self, settings: LauncherSettings) -> Self
The settings for the launcher.
pub fn one_and_done(self, game: GameSetup) -> Self
[src]
pub fn one_and_done(self, game: GameSetup) -> Self
Play one game with the given settings.
pub fn repeat_forever(self, game: GameSetup) -> Self
[src]
pub fn repeat_forever(self, game: GameSetup) -> Self
Keep restarting game with the given settings.
pub fn step_interval(self, steps: u32) -> Self
[src]
pub fn step_interval(self, steps: u32) -> Self
Step the game instance with a discrete interval
pub fn step_realtime(self) -> Self
[src]
pub fn step_realtime(self) -> Self
Step the bot as fast as possible
pub fn break_on_ctrlc(self, flag: bool) -> Self
[src]
pub fn break_on_ctrlc(self, flag: bool) -> Self
Stop 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) -> Self
Provide 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 MeleeBuilder
impl !Sync for MeleeBuilder
impl !Sync for MeleeBuilder