com.fuckingbrit.q3astats
Class KillParserFactory
java.lang.Object
|
+--com.fuckingbrit.q3astats.KillParserFactory
- public abstract class KillParserFactory
- extends java.lang.Object
This Factory class provides a way to aquire a KillParser for a specific kill
message for a given game. Example:
KillParser kp = KillParserFactory.getHitParser("com.fuckingbrit.q3astats.urbanterror.UT2M4");
KillPair kpair = kp.killParse("Chewy played 'catch the shiny bullet' with THEMike's M4 rounds.");
System.out.println(kpair.victim + " was killed by " + kpair.killer);
Will print "Chewy was killed by THEMike". Simple.
- Version:
- 1.0
- Author:
- Michael Jervis (mike@fuckingbrit.com)
- See Also:
KillParser
Method Summary |
static KillParser |
getKillParser(java.lang.String killClass)
This method will fetch an instance of a class that implements the
KillParser Interface, handling any exceptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KillParserFactory
public KillParserFactory()
getKillParser
public static KillParser getKillParser(java.lang.String killClass)
throws QuakeParseException
- This method will fetch an instance of a class that implements the
KillParser Interface, handling any exceptions.
- Parameters:
killClass
- Name of the kill class, this should come from a game
definition.
- Returns:
- an object implementing the KillParser interface.
QuakeParseException