Class: Australium::PlayerKill

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

Constant Summary collapse

LOG_REGEX =
/"(?<attacker>.+)" killed "(?<victim>.+)" 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

#attackerPlayer

Returns the player responsible for the kill.

Returns:

  • (Player)

    the player responsible for the kill.



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

#victimPlayer

Returns the player who was killed.

Returns:

  • (Player)

    the player who was killed.



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

#weaponString

Returns the name of the weapon used to kill (can be World).

Returns:

  • (String)

    the name of the weapon used to kill (can be World).



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