Module: Australium

Defined in:
lib/australium.rb,
lib/australium/game.rb,
lib/australium/event.rb,
lib/australium/parser.rb,
lib/australium/player.rb,
lib/australium/version.rb,
lib/australium/game_state.rb,
lib/australium/event_filters.rb,
lib/australium/events/trigger.rb,
lib/australium/events/game_end.rb,
lib/australium/events/map_load.rb,
lib/australium/events/map_start.rb,
lib/australium/events/player_say.rb,
lib/australium/cache/event_cache.rb,
lib/australium/events/player_kill.rb,
lib/australium/events/player_connect.rb,
lib/australium/events/player_suicide.rb,
lib/australium/events/player_join_team.rb,
lib/australium/events/player_disconnect.rb,
lib/australium/events/player_enter_game.rb,
lib/australium/events/player_name_change.rb,
lib/australium/events/player_role_change.rb

Defined Under Namespace

Modules: EventFilters Classes: Event, EventCache, Game, GameEnd, GameState, MapLoad, MapStart, Parser, Player, PlayerConnect, PlayerDisconnect, PlayerEnterGame, PlayerJoinTeam, PlayerKill, PlayerNameChange, PlayerRoleChange, PlayerSay, PlayerSuicide, Trigger

Constant Summary collapse

VERSION =
"1.2.1"

Class Method Summary collapse

Class Method Details

.parse_file(logfile) ⇒ Array<Game> Also known as: parse

Parses a file located at the given path and returns an array of Games.


20
21
22
23
24
25
26
# File 'lib/australium.rb', line 20

def self.parse_file(logfile)
  file_log = Parser::parse_file(logfile)
  game_logs = Parser::parse_file_log(file_log)
  game_logs.map do |game_log|
    Parser::parse_game_log(game_log)
  end
end