1 /*
2 * MapStats.java
3 *
4 * Created on February 18, 2003, 11:41 PM
5 */
6
7 package com.mlw.fps.model.business.vo.stats;
8
9 import com.mlw.fps.model.business.vo.Map;
10 /***
11 *
12 * @author Matthew Wilson
13 */
14 public class MapStats
15 {
16 private Map map;
17 private long usage;
18 private long kills;
19 /*** Holds value of property weapon. */
20 private WeaponStats weapon = new WeaponStats();
21
22 /*** Creates a new instance of MapStats
23 */
24 public MapStats(Map map)
25 {
26 this.map = map;
27 }
28
29 public Map getMap()
30 {
31 return map;
32 }
33
34 /*** Getter for property usage.
35 * @return Value of property usage.
36 */
37 public Long getUsage()
38 {
39 return new Long(this.usage);
40 }
41
42 /*** Setter for property usage.
43 * @param usage New value of property usage.
44 */
45 public void addUsage()
46 {
47 this.usage++;
48 }
49
50 /*** Getter for property kills.
51 * @return Value of property kills.
52 */
53 public Long getKills()
54 {
55 return new Long(this.kills);
56 }
57
58 /*** Setter for property kills.
59 * @param kills New value of property kills.
60 */
61 public void addToKills(long kills)
62 {
63 this.kills+=kills;
64 }
65
66 /***
67 * @return WeaponStats
68 */
69 public WeaponStats getWeapon()
70 {
71 return weapon;
72 }
73
74 }
This page was automatically generated by Maven