Class: SRL::Game::Statistics

Inherits:
Object
  • Object
show all
Includes:
Unmarshalable
Defined in:
lib/srl/game.rb

Overview

Summary information about runs of a particular game.

Instance Attribute Summary collapse

Method Summary

Methods included from Unmarshalable

included

Instance Attribute Details

#largestRaceObject (readonly) Also known as: largest_race_id

The ID of the race with the highest number of entrants.



98
99
100
# File 'lib/srl/game.rb', line 98

def largestRace
  @largestRace
end

#largestRaceSizeObject (readonly) Also known as: largest_race_player_count, largest_race_size

Number of entrants in the largest race of the game associated with these Statistics.



103
104
105
# File 'lib/srl/game.rb', line 103

def largestRaceSize
  @largestRaceSize
end

#totalPlayersObject (readonly) Also known as: total_players

Number of players that have participated in a race of a given game.



94
95
96
# File 'lib/srl/game.rb', line 94

def totalPlayers
  @totalPlayers
end

#totalRacesObject (readonly) Also known as: total_races

Number of races that a particular game has had.



89
90
91
# File 'lib/srl/game.rb', line 89

def totalRaces
  @totalRaces
end

#totalRaceTimeObject (readonly) Also known as: total_race_time

Number of seconds that this game has been raced. A sum of the worst time of each race.



109
110
111
# File 'lib/srl/game.rb', line 109

def totalRaceTime
  @totalRaceTime
end

#totalTimePlayedObject (readonly) Also known as: total_time_played

Number of seconds that this game has been played for. A sum of all the times in all races.



114
115
116
# File 'lib/srl/game.rb', line 114

def totalTimePlayed
  @totalTimePlayed
end