com.fuckingbrit.q3astats
Interface KillParser

All Known Implementing Classes:
UT292FS, UT2Bled, UT2DE, UT2Flash, UT2G36, UT2HE, UT2HK69, UT2Kick, UT2Knife, UT2Knife2, UT2M4, UT2Monkey, UT2MP5K, UT2PSG, UT2Smoke, UT2SPASS, UT2Spawn, UT2SR8, UT2UMP

public interface KillParser

All games support kills. But the kill messages may vary. The message may have killer before victim, or visa versa, the message may have all sorts of fluff in it. The cleanest way to allow the detection of victim and killer is to have a way to parse each kill message specificaly.

The KillParser interface defines this tool. Each game's XML definition will specify which class can handle parsing that kill. That class must implement this interface. One class could handle all kill messages if you wanted a spagetti class.

Version:
1.0
Author:
Michael Jervis (mike@fuckingbrit.com)
See Also:
Game

Method Summary
 KillPair killParse(java.lang.String kill)
          This method parses a kill and returns killer and victim.
 

Method Detail

killParse

public KillPair killParse(java.lang.String kill)
This method parses a kill and returns killer and victim.

Parameters:
kill - The kill string.
Returns:
A killer and victim object.
See Also:
KillPair