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

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

public class WeaponStats
extends WeaponUsage

Author:
Matthew Wilson

Field Summary
 
Fields inherited from class com.mlw.fps.model.business.vo.WeaponUsage
damage, deaths, hits, kills, locations, percentages, player, shots, tks, weapon
 
Constructor Summary
WeaponStats()
          Creates a new instance of WeaponStats
WeaponStats(Weapon weapon)
          Creates a new instance of WeaponStats
WeaponStats(Weapon weapon, java.lang.Long total)
          Creates a new instance of WeaponStats
WeaponStats(Weapon weapon, Player victim)
          Creates a new instance of WeaponStats
 
Method Summary
 java.lang.Double getAccuracy()
           
 java.lang.Long getAdvantage()
           
 java.lang.Long getAdvantagePercentage()
           
 java.lang.Long getDamage()
          Getter for property damage.
 java.lang.Long getDeaths()
          Getter for property received.
 java.lang.Long getDisAdvantagePercentage()
           
 java.lang.Double getEffeciency()
           
 java.lang.Long getHits()
          Getter for property hits.
 Player getKiller()
          Getter for property killer.
 java.lang.Long getKills()
          Getter for property usage.
 java.lang.Double getKillToDeathRatio()
           
 java.lang.Double getPercentage()
           
 java.lang.Long getShots()
          Getter for property shots.
 Player getVictim()
          Getter for property victim.
 void setKiller(Player killer)
          Setter for property killer.
 void setVictim(Player victim)
          Setter for property victim.
 
Methods inherited from class com.mlw.fps.model.business.vo.WeaponUsage
add, addDamage, addDeaths, addHits, addKills, addShots, getLocations, getPercentages, getPlayer, getTks, getWeapon, setDamage, setDeaths, setHits, setKills, setLocations, setPlayer, setShots, setTks, setWeapon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaponStats

public WeaponStats()
Creates a new instance of WeaponStats


WeaponStats

public WeaponStats(Weapon weapon)
Creates a new instance of WeaponStats


WeaponStats

public WeaponStats(Weapon weapon,
                   Player victim)
Creates a new instance of WeaponStats


WeaponStats

public WeaponStats(Weapon weapon,
                   java.lang.Long total)
Creates a new instance of WeaponStats

Method Detail

getPercentage

public java.lang.Double getPercentage()

getKills

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

Overrides:
getKills in class WeaponUsage
Returns:
Value of property usage.

getKiller

public Player getKiller()
Getter for property killer.

Returns:
Value of property killer.

setKiller

public void setKiller(Player killer)
Setter for property killer.

Parameters:
killer - New value of property killer.

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.

getDeaths

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

Overrides:
getDeaths in class WeaponUsage
Returns:
Value of property received.

getAdvantage

public java.lang.Long getAdvantage()

getKillToDeathRatio

public java.lang.Double getKillToDeathRatio()

getAccuracy

public java.lang.Double getAccuracy()

getEffeciency

public java.lang.Double getEffeciency()

getAdvantagePercentage

public java.lang.Long getAdvantagePercentage()

getDisAdvantagePercentage

public java.lang.Long getDisAdvantagePercentage()

getShots

public java.lang.Long getShots()
Getter for property shots.

Overrides:
getShots in class WeaponUsage
Returns:
Value of property shots.

getHits

public java.lang.Long getHits()
Getter for property hits.

Overrides:
getHits in class WeaponUsage
Returns:
Value of property hits.

getDamage

public java.lang.Long getDamage()
Getter for property damage.

Overrides:
getDamage in class WeaponUsage
Returns:
Value of property damage.


Copyright © 2003 mlavilson. All Rights Reserved.