Class: Australium::PlayerSuicide

Inherits:
Event
  • Object
show all
Defined in:
lib/australium/events/player_suicide.rb

Constant Summary collapse

LOG_REGEX =
/"(?<player>.+)" committed suicide with "(?<weapon>[^"]+)"/

Constants inherited from Event

Event::PROPERTY_REGEX, Event::TIMESTAMP_REGEX

Instance Attribute Summary collapse

Attributes inherited from Event

#raw

Method Summary

Methods inherited from Event

inherited, #initialize, #to_s

Constructor Details

This class inherits a constructor from Australium::Event

Instance Attribute Details

#playerPlayer

Returns the Australium::Player who committed suicide.

Returns:



# File 'lib/australium/events/player_suicide.rb', line 6

#weaponString

Returns the name of the weapon the player committed suicide with (can be World).

Returns:

  • (String)

    the name of the weapon the player committed suicide with (can be World).



# File 'lib/australium/events/player_suicide.rb', line 6