View Javadoc
1 /* 2 * Player.java 3 * 4 * Created on February 6, 2003, 2:15 AM 5 */ 6 7 package com.mlw.fps.model.business.vo; 8 9 import java.util.Date; 10 import java.util.HashMap; 11 12 /*** 13 * 14 * @author Matthew Wilson 15 */ 16 public class Kill extends Base 17 { 18 /*** Holds value of property weapon. */ 19 private Weapon weapon; 20 21 /*** Holds value of property players. */ 22 private java.util.Map players = new HashMap(); 23 24 /*** Creates a new instance of Kill 25 */ 26 public Kill() 27 { 28 } 29 30 /*** Creates a new instance of Kill 31 */ 32 public Kill(Date date, KillPlayer killer, Weapon weapon, KillPlayer victim) 33 { 34 setDate(date); 35 this.weapon = weapon; 36 players.put(killer.getRole().getId(), killer); 37 players.put(victim.getRole().getId(), victim); 38 } 39 40 /*** Getter for property weapon. 41 * @return Value of property weapon. 42 */ 43 public Weapon getWeapon() 44 { 45 return this.weapon; 46 } 47 48 /*** Setter for property weapon. 49 * @param weapon New value of property weapon. 50 */ 51 public void setWeapon(Weapon weapon) 52 { 53 this.weapon = weapon; 54 } 55 56 /*** Getter for property players. 57 * @return Value of property players. 58 */ 59 public java.util.Map getPlayers() 60 { 61 return this.players; 62 } 63 64 /*** Setter for property players. 65 * @param players New value of property players. 66 */ 67 private void setPlayers(java.util.Map players) 68 { 69 this.players = players; 70 } 71 72 }

This page was automatically generated by Maven