Class: VaultCoh::Player
- Inherits:
-
Object
- Object
- VaultCoh::Player
- Defined in:
- lib/vault_coh/player.rb
Overview
Game-specific player representation. Includes generally immutable information alongside data specific to the replay being parsed.
Instance Method Summary collapse
-
#battlegroup ⇒ Integer|NilClass
The pbgid of the battlegroup the player selected, or
nil
if no battlegroup was selected. -
#battlegroup_commands ⇒ Array<Commands::SelectBattlegroupCommand | Commands::SelectBattlegroupAbilityCommand | Commands::UseBattlegroupAbilityCommand>
A list of only battlegroup-related commands executed by the player in the match.
-
#build_commands ⇒ Array<Commands::BuildSquad>
A list of only build-related commands executed by the player in the match.
-
#commands ⇒ Array<Command>
A list of all commands executed by the player in the match.
-
#faction ⇒ Faction
The faction selected by the player in this match.
-
#messages ⇒ Array<Message>
A list of all messages sent by the player in the match.
-
#name ⇒ String
Name of the player at the time the replay was recorded.
-
#profile_id ⇒ Integer
The Relic profile ID of the player.
-
#steam_id ⇒ Integer
The Steam ID of the player.
-
#team ⇒ Team
The team the player was assigned to.
-
#to_h ⇒ Hash
Returns a hash representation of the object.
Instance Method Details
#battlegroup ⇒ Integer|NilClass
The pbgid of the battlegroup the player selected, or nil
if no battlegroup was selected. For details on what this ID represents please see Commands::SelectBattlegroup#pbgid.
32 |
# File 'lib/vault_coh/player.rb', line 32 def battlegroup; end |
#battlegroup_commands ⇒ Array<Commands::SelectBattlegroupCommand | Commands::SelectBattlegroupAbilityCommand | Commands::UseBattlegroupAbilityCommand>
A list of only battlegroup-related commands executed by the player in the match. A battlegroup command is any that involves the select or use of battlegroups and their abilities. Sorted chronologically from first to last.
76 |
# File 'lib/vault_coh/player.rb', line 76 def battlegroup_commands; end |
#build_commands ⇒ Array<Commands::BuildSquad>
A list of only build-related commands executed by the player in the match. A build command is any that enqueues the construction of a new unit. Sorted chronologically from first to last.
66 |
# File 'lib/vault_coh/player.rb', line 66 def build_commands; end |
#commands ⇒ Array<Command>
A list of all commands executed by the player in the match. Sorted chronologically from first to last.
59 |
# File 'lib/vault_coh/player.rb', line 59 def commands; end |
#faction ⇒ Faction
The faction selected by the player in this match.
19 |
# File 'lib/vault_coh/player.rb', line 19 def faction; end |
#messages ⇒ Array<Message>
A list of all messages sent by the player in the match. Sorted chronologically from first to last.
53 |
# File 'lib/vault_coh/player.rb', line 53 def ; end |
#name ⇒ String
Name of the player at the time the replay was recorded. Note that the player may have changed their name since time of recording. If attempting to uniquely identify players across replay files, look at #steam_id and #profile_id instead. The string is UTF-16 encoded.
14 |
# File 'lib/vault_coh/player.rb', line 14 def name; end |
#profile_id ⇒ Integer
The Relic profile ID of the player. This ID can be used to uniquely identify a player between replays, and can be used to query statistical information about the player from Relic’s stats API.
47 |
# File 'lib/vault_coh/player.rb', line 47 def profile_id; end |
#steam_id ⇒ Integer
The Steam ID of the player. This ID can be used to uniquely identify a player between replays, and connect them to their Steam profile.
39 |
# File 'lib/vault_coh/player.rb', line 39 def steam_id; end |
#team ⇒ Team
The team the player was assigned to. Currently only head-to-head matchups are supported (max two teams).
25 |
# File 'lib/vault_coh/player.rb', line 25 def team; end |
#to_h ⇒ Hash
Returns a hash representation of the object.
81 |
# File 'lib/vault_coh/player.rb', line 81 def to_h; end |