public class BWClientConfiguration extends Object
Constructor and Description |
---|
BWClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAsync() |
int |
getAsyncFrameBufferCapacity() |
boolean |
getAsyncUnsafe() |
boolean |
getAutoContinue() |
boolean |
getDebugConnection() |
boolean |
getLogVerbosely() |
int |
getMaxFrameDurationMs() |
boolean |
getUnlimitedFrameZero() |
BWClientConfiguration |
withAsync(boolean value)
Runs the bot in asynchronous mode.
|
BWClientConfiguration |
withAsyncFrameBufferCapacity(int size)
The maximum number of frames to buffer while waiting on a bot.
|
BWClientConfiguration |
withAsyncUnsafe(boolean value)
Enables thread-unsafe async mode.
|
BWClientConfiguration |
withAutoContinue(boolean value)
When true, restarts the client loop when a game ends, allowing the client to play multiple games without restarting.
|
BWClientConfiguration |
withDebugConnection(boolean value)
Set to `true` for more explicit error messages (which might spam the terminal).
|
BWClientConfiguration |
withLogVerbosely(boolean value)
Toggles verbose logging, particularly of synchronization steps.
|
BWClientConfiguration |
withMaxFrameDurationMs(int value)
The maximum amount of time the bot is supposed to spend on a single frame.
|
BWClientConfiguration |
withUnlimitedFrameZero(boolean value)
Most bot tournaments allow bots to take an indefinite amount of time on frame #0 (the first frame of the game) to analyze the map and load data,
as the bot has no prior access to BWAPI or game information.
|
public BWClientConfiguration withDebugConnection(boolean value)
public boolean getDebugConnection()
public BWClientConfiguration withAutoContinue(boolean value)
public boolean getAutoContinue()
public BWClientConfiguration withUnlimitedFrameZero(boolean value)
public boolean getUnlimitedFrameZero()
public BWClientConfiguration withMaxFrameDurationMs(int value)
public int getMaxFrameDurationMs()
public BWClientConfiguration withAsync(boolean value)
public boolean getAsync()
public BWClientConfiguration withAsyncFrameBufferCapacity(int size)
public int getAsyncFrameBufferCapacity()
public BWClientConfiguration withAsyncUnsafe(boolean value)
public boolean getAsyncUnsafe()
public BWClientConfiguration withLogVerbosely(boolean value)
public boolean getLogVerbosely()
Copyright © 2022. All rights reserved.