Struct sc2::agent::AgentBuilder[][src]

pub struct AgentBuilder { /* fields omitted */ }

Build an agent.

Methods

impl AgentBuilder
[src]

Create a new AgentBuilder with the default settings.

Set the race of the player.

Add an Observer client to observe the game state.

Add an Action client to dispatch commands.

Add a Debug client to use debugging tools.

Take the stream of game events to listen for.

This should be called only once per builder! Subsequent calls will return None because Streams should not be shared.

The stream item is a tuple containing the event, and a promise to be fulfilled once the user is done with the event.

Auto Trait Implementations

impl !Send for AgentBuilder

impl !Sync for AgentBuilder