1 /*
2 * Weapon.java
3 *
4 * Created on February 6, 2003, 2:12 AM
5 */
6
7 package com.mlw.fps.model.business.vo;
8
9 /***
10 *
11 * @author Matthew Wilson
12 */
13 public class Weapon extends Base
14 {
15 private Double DEFAULT_SKILL = new Double(1);
16 private Double skill;
17
18 /*** Holds value of property name. */
19 private String name;
20
21 /*** Creates a new instance of Weapon
22 */
23 public Weapon()
24 {
25 }
26
27 /*** Creates a new instance of Weapon
28 */
29 public Weapon(String name)
30 {
31 this.name = name;
32 }
33
34 /*** Getter for property skill.
35 * @return Value of property skill.
36 */
37 public Double getSkill()
38 {
39 return ( this.skill == null )?DEFAULT_SKILL:this.skill;
40 }
41
42 /*** Setter for property skill.
43 * @param skill New value of property skill.
44 */
45 public void setSkill(Double skill)
46 {
47 this.skill = skill;
48 }
49
50 /*** Getter for property name.
51 * @return Value of property name.
52 */
53 public String getName()
54 {
55 return this.name;
56 }
57
58 /*** Setter for property name.
59 * @param name New value of property name.
60 */
61 public void setName(String name)
62 {
63 this.name = name;
64 }
65
66 }
This page was automatically generated by Maven