View Javadoc
1 /* 2 * Game.java 3 * 4 * Created on April 24, 2003, 11:01 PM 5 */ 6 7 package com.mlw.fps.model.business.vo; 8 9 import java.util.ArrayList; 10 import java.util.Date; 11 import java.util.HashMap; 12 import java.util.Iterator; 13 import java.util.List; 14 15 /*** 16 * 17 * @author Matthew Wilson 18 */ 19 public class Game extends Base 20 { 21 /*** Holds value of property map. */ 22 private Map map; 23 /*** Holds value of property endDate. */ 24 private Date endDate; 25 /*** Holds value of property rounds. */ 26 private List rounds; 27 28 /*** Holds value of property recaps. */ 29 private java.util.Map recaps; 30 31 /*** Creates a new instance of Game */ 32 public Game() 33 { 34 } 35 36 /*** Creates a new instance of Round 37 */ 38 public Game(Map map, Date date) 39 { 40 setDate(date); 41 this.map = map; 42 } 43 44 /*** Getter for property map. 45 * @return Value of property map. 46 */ 47 public Map getMap() 48 { 49 return this.map; 50 } 51 52 /*** Setter for property map. 53 * @param map New value of property map. 54 */ 55 public void setMap(Map map) 56 { 57 this.map = map; 58 } 59 60 /*** Getter for property endDate. 61 * @return Value of property endDate. 62 */ 63 public Date getEndDate() 64 { 65 return this.endDate; 66 } 67 68 /*** Setter for property endDate. 69 * @param endDate New value of property endDate. 70 */ 71 public void setEndDate(Date endDate) 72 { 73 this.endDate = endDate; 74 } 75 76 /*** Getter for property rounds. 77 * @return Value of property rounds. 78 */ 79 public List getRounds() 80 { 81 if( rounds==null ) rounds = new ArrayList(); 82 return this.rounds; 83 } 84 85 /*** Setter for property rounds. 86 * @param rounds New value of property rounds. 87 */ 88 public void setRounds(List rounds) 89 { 90 this.rounds = rounds; 91 } 92 93 /*** Getter for property recaps. 94 * @return Value of property recaps. 95 */ 96 public java.util.Map getRecaps() 97 { 98 if( recaps==null ) recaps = new HashMap(); 99 return this.recaps; 100 } 101 102 /*** Setter for property recaps. 103 * @param recaps New value of property recaps. 104 */ 105 public void setRecaps(java.util.Map recaps) 106 { 107 this.recaps = recaps; 108 } 109 110 public List getKills() 111 { 112 List kills = new ArrayList(); 113 if( rounds.isEmpty() ) return kills; 114 115 for( Iterator iter = rounds.iterator(); iter.hasNext();) 116 { 117 Round round = (Round)iter.next(); 118 kills.addAll(round.getKills()); 119 } 120 return kills; 121 } 122 123 }

This page was automatically generated by Maven