|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Loader
interface is similar to a sax parser. The logs,
stream, or whatever can be parsed. and as events ocure in the logs
methods should be called.
Method Summary | |
void |
addKill(java.util.Date date,
java.lang.String killer,
java.lang.String weapon,
java.lang.String victim)
Method should be called after a new kill has been parsed. |
void |
addWeaponUsage(java.lang.String player,
java.lang.String weapon,
WeaponUsage usage)
|
void |
endGame(java.util.Date date)
|
void |
endRound(java.lang.String winningTeam,
java.util.Date date)
|
void |
load()
Starts the parsing. |
void |
setPlayerStatus(java.lang.String player,
java.lang.String team,
java.lang.String role)
Method should be called when a player joins or switches teams. |
void |
startGame(java.util.Date date)
Method should be called after a new game has been parsed. |
void |
startMap(java.util.Date date,
java.lang.String name)
Method should be called after a new map has been parsed. |
void |
startRound(java.util.Date date)
Method should be called after a round map has been parsed. |
Method Detail |
public void load() throws java.lang.Exception
java.lang.Exception
public void startMap(java.util.Date date, java.lang.String name)
date
- Time event occured.name
- of the mappublic void setPlayerStatus(java.lang.String player, java.lang.String team, java.lang.String role)
player
- name of the player.team
- name of the team.role
- name of the role.public void startGame(java.util.Date date)
date
- Time event occured.public void addWeaponUsage(java.lang.String player, java.lang.String weapon, WeaponUsage usage)
public void endGame(java.util.Date date)
public void startRound(java.util.Date date)
date
- Time event occured.public void endRound(java.lang.String winningTeam, java.util.Date date)
public void addKill(java.util.Date date, java.lang.String killer, java.lang.String weapon, java.lang.String victim)
killer
- the name of the killerweapon
- the name of the weaponvictim
- the name of the victim.date
- Time event occured.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |