runner

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentReplayPath

func CurrentReplayPath() string

CurrentReplayPath provides access to the replay filename and full path of the current replay (if any).

func OpponentID added in v0.2.0

func OpponentID() string

OpponentID returns the current ladder opponent ID or an empty string.

func Random1v1Map

func Random1v1Map() string

Random1v1Map returns a random map name from the current 1v1 ladder map pool.

func RunAgent

func RunAgent(agent client.PlayerSetup)

RunAgent starts the game.

func Set

func Set(name, value string)

Set changes the default value of a command line flag.

func SetComputer

func SetComputer(race api.Race, difficulty api.Difficulty, build api.AIBuild)

SetComputer sets the default computer opponent flags (can still be overridden on the command line).

func SetConnectTimeout added in v0.2.0

func SetConnectTimeout(timeout time.Duration)

SetConnectTimeout sets how long to wait for a connection to the game.

func SetExecutable added in v0.2.0

func SetExecutable(exePath string)

SetExecutable sets the default executable path to use.

func SetGameVersion added in v0.2.0

func SetGameVersion(baseBuild uint32, dataVersion string)

SetGameVersion specifies a specific base game and data version to use when launching.

func SetInterfaceOptions added in v0.2.0

func SetInterfaceOptions(options *api.InterfaceOptions)

SetInterfaceOptions sets the interface launch options when starting a game.

func SetMap

func SetMap(name string)

SetMap sets the default map to use.

func SetRealtime

func SetRealtime()

SetRealtime sets the default realtime option to enabled.

func SetReplayFilter

func SetReplayFilter(filter func(info *api.ResponseReplayInfo) bool)

SetReplayFilter provides a filter which determines if a replay should be run. This allows such things as MMR filtering within a large group of replays. The filter function can also call SetReplayPlayerID before returning true to alter the player who will be observed for the replay.

func SetReplayPath

func SetReplayPath(path string) error

SetReplayPath sets a directory of replay files or a single replay to load.

func SetReplayPlayerID

func SetReplayPlayerID(player api.PlayerID)

SetReplayPlayerID specifies which player the agent would like to observe. This can be called from the filter function specified in SetReplayFilter to determine the player dynamically.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL