Class: Sc2::Player::Human
- Inherits:
-
Sc2::Player
- Object
- Sc2::Player
- Sc2::Player::Human
- Defined in:
- lib/sc2ai/player.rb
Overview
A human player for a Match
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:) ⇒ Human
constructor
A new instance of Human.
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, #on_status_change
Methods included from Connection::StatusListener
Constructor Details
#initialize(race:, name:) ⇒ Human
Returns a new instance of Human.
487 488 489 |
# File 'lib/sc2ai/player.rb', line 487 def initialize(race:, name:) super(race:, name:, type: Api::PlayerType::PARTICIPANT) end |