com.mlw.fps.load
Interface Loader

All Known Implementing Classes:
DefaultLoader

public interface Loader

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.

Author:
Matthew Wilson

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

load

public void load()
          throws java.lang.Exception
Starts the parsing.

java.lang.Exception

startMap

public void startMap(java.util.Date date,
                     java.lang.String name)
Method should be called after a new map has been parsed.

Parameters:
date - Time event occured.
name - of the map

setPlayerStatus

public 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.

Parameters:
player - name of the player.
team - name of the team.
role - name of the role.

startGame

public void startGame(java.util.Date date)
Method should be called after a new game has been parsed.

Parameters:
date - Time event occured.

addWeaponUsage

public void addWeaponUsage(java.lang.String player,
                           java.lang.String weapon,
                           WeaponUsage usage)

endGame

public void endGame(java.util.Date date)

startRound

public void startRound(java.util.Date date)
Method should be called after a round map has been parsed.

Parameters:
date - Time event occured.

endRound

public void endRound(java.lang.String winningTeam,
                     java.util.Date date)

addKill

public 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. NOTE: The players and weapons need to be take care of here also.

Parameters:
killer - the name of the killer
weapon - the name of the weapon
victim - the name of the victim.
date - Time event occured.


Copyright © 2003 mlavilson. All Rights Reserved.