com.mlw.fps.model.business.vo.stats
Class PlayerStats

java.lang.Object
  |
  +--com.mlw.fps.model.business.vo.stats.PlayerStats

public class PlayerStats
extends java.lang.Object

Author:
Matthew Wilson

Constructor Summary
PlayerStats(Player player)
          Creates a new instance of PlayerStats
PlayerStats(Player player, Player victim)
          Creates a new instance of PlayerStats
 
Method Summary
 void addDeath()
          Setter for property deaths.
 void addKill()
          Setter for property kills.
 void addSecondsAlive(long more)
           
 void addSecondsPlaying(long more)
           
 java.lang.Double getAdvantage()
          Getter for property advantage.
 java.lang.Double getAliveTimePercentage()
           
 java.lang.Long getDeaths()
          Getter for property deaths.
 java.lang.Double getDeathsPerMin()
           
 java.lang.Long getKills()
          Getter for property kills.
 java.lang.Double getKillsPerMin()
           
 Player getPlayer()
          Getter for property player.
 java.lang.Double getPower()
           
 java.lang.Long getSecondsAlive()
           
 java.lang.Long getSecondsPlaying()
           
 Player getVictim()
          Getter for property victim.
 WeaponStats getWeapon()
          Getter for property weapon.
 void setVictim(Player victim)
          Setter for property victim.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerStats

public PlayerStats(Player player)
Creates a new instance of PlayerStats


PlayerStats

public PlayerStats(Player player,
                   Player victim)
Creates a new instance of PlayerStats

Method Detail

getPlayer

public Player getPlayer()
Getter for property player.

Returns:
Value of property player.

getKills

public java.lang.Long getKills()
Getter for property kills.

Returns:
Value of property kills.

addKill

public void addKill()
Setter for property kills.


getDeaths

public java.lang.Long getDeaths()
Getter for property deaths.

Returns:
Value of property deaths.

addDeath

public void addDeath()
Setter for property deaths.


getAdvantage

public java.lang.Double getAdvantage()
Getter for property advantage.

Returns:
Value of property advantage.

getAliveTimePercentage

public java.lang.Double getAliveTimePercentage()

getPower

public java.lang.Double getPower()

getVictim

public Player getVictim()
Getter for property victim.

Returns:
Value of property victim.

setVictim

public void setVictim(Player victim)
Setter for property victim.

Parameters:
victim - New value of property victim.

getWeapon

public WeaponStats getWeapon()
Getter for property weapon.

Returns:
Value of property weapon.

getSecondsAlive

public java.lang.Long getSecondsAlive()
Returns:

addSecondsAlive

public void addSecondsAlive(long more)

addSecondsPlaying

public void addSecondsPlaying(long more)

getSecondsPlaying

public java.lang.Long getSecondsPlaying()

getKillsPerMin

public java.lang.Double getKillsPerMin()

getDeathsPerMin

public java.lang.Double getDeathsPerMin()


Copyright © 2003 mlavilson. All Rights Reserved.