Class: Sc2::Player::BotProcess
- Inherits:
-
Sc2::Player
- Object
- Sc2::Player
- Sc2::Player::BotProcess
- Defined in:
- lib/sc2ai/player.rb
Overview
Launches an external bot, such as a python practice partner by triggering an exteral executable. Allows using CLI launch options hash or “laddorconfig.json”-complient launcher.
Constant Summary
Constants inherited from Sc2::Player
Instance Attribute Summary
Attributes inherited from Sc2::Player
#IDENTIFIED_RACES, #ai_build, #api, #difficulty, #enable_feature_layer, #interface_options, #name, #opponent_id, #race, #realtime, #step_count, #type
Attributes included from GameState
#chats_received, #data, #game_info, #game_info_loop, #game_loop, #observation, #result, #spent_minerals, #spent_supply, #spent_vespene, #status
Instance Method Summary collapse
-
#initialize(race:, name:) ⇒ BotProcess
constructor
A new instance of BotProcess.
Methods inherited from Sc2::Player
#connect, #create_game, #disconnect, #join_game, #leave_game, #race_unknown?, #refresh_game_info, #requires_client?
Methods included from GameState
#available_abilities, #common, #game_info_stale?, #on_status_change
Methods included from Connection::StatusListener
Constructor Details
#initialize(race:, name:) ⇒ BotProcess
Returns a new instance of BotProcess.
420 421 422 423 |
# File 'lib/sc2ai/player.rb', line 420 def initialize(race:, name:) super(race:, name:, type: Api::PlayerType::Participant) raise "not implemented" end |