|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Game
Method Summary | |
KillPair |
killParse(java.lang.String kill)
This method parses a kill and returns killer and victim. |
Method Detail |
public KillPair killParse(java.lang.String kill)
kill
- The kill string.
KillPair
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |