com.mlw.fps.load
Class DefaultLoader

java.lang.Object
  |
  +--com.mlw.fps.load.DefaultLoader
All Implemented Interfaces:
Loader
Direct Known Subclasses:
HalfLifeLoader

public abstract class DefaultLoader
extends java.lang.Object
implements Loader

Author:
Matthew Wilson

Field Summary
protected  Game game
           
protected  Kill kill
           
protected static org.apache.commons.logging.Log log
           
protected  Map map
           
protected  Round round
           
 
Constructor Summary
DefaultLoader()
           
 
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 setPlayerStatus(java.lang.String name, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mlw.fps.load.Loader
load
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

map

protected Map map

kill

protected Kill kill

game

protected Game game

round

protected Round round
Constructor Detail

DefaultLoader

public DefaultLoader()
Method Detail

startMap

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

Specified by:
startMap in interface Loader
Parameters:
date - Time event occured.
name - of the map
See Also:
Loader

startGame

public void startGame(java.util.Date date)
Description copied from interface: Loader
Method should be called after a new game has been parsed.

Specified by:
startGame in interface Loader
Parameters:
date - Time event occured.
See Also:
Loader

addWeaponUsage

public void addWeaponUsage(java.lang.String player,
                           java.lang.String weapon,
                           WeaponUsage usage)
Specified by:
addWeaponUsage in interface Loader

endGame

public void endGame(java.util.Date date)
Specified by:
endGame in interface Loader
See Also:
Loader

startRound

public void startRound(java.util.Date date)
Description copied from interface: Loader
Method should be called after a round map has been parsed.

Specified by:
startRound in interface Loader
Parameters:
date - Time event occured.
See Also:
Loader

endRound

public void endRound(java.lang.String winningTeam,
                     java.util.Date date)
Specified by:
endRound in interface Loader
See Also:
Loader

addKill

public void addKill(java.util.Date date,
                    java.lang.String killer,
                    java.lang.String weapon,
                    java.lang.String victim)
Description copied from interface: Loader
Method should be called after a new kill has been parsed. NOTE: The players and weapons need to be take care of here also.

Specified by:
addKill in interface Loader
Parameters:
killer - the name of the killer
weapon - the name of the weapon
victim - the name of the victim.
date - Time event occured.
See Also:
Loader

setPlayerStatus

public void setPlayerStatus(java.lang.String name,
                            java.lang.String team,
                            java.lang.String role)
Description copied from interface: Loader
Method should be called when a player joins or switches teams.

Specified by:
setPlayerStatus in interface Loader
Parameters:
name - name of the player.
team - name of the team.
role - name of the role.


Copyright © 2003 mlavilson. All Rights Reserved.