public class Weapon
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
ammo
|
private java.lang.Double |
firePower
|
private java.lang.String |
name
|
private java.lang.Double |
range
|
private java.lang.Double |
reloadTime
|
Constructor and Description |
---|
Weapon() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getAmmo() |
java.lang.Double |
getFirePower() |
java.lang.String |
getName() |
java.lang.Double |
getRange() |
java.lang.Double |
getReloadTime() |
void |
setAmmo(java.lang.Integer ammo) |
void |
setFirePower(java.lang.Double firePower) |
void |
setName(java.lang.String name) |
void |
setRange(java.lang.Double range) |
void |
setReloadTime(java.lang.Double reloadTime) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String name
private java.lang.Double range
private java.lang.Double firePower
private java.lang.Double reloadTime
private java.lang.Integer ammo
public Weapon()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- new value for namepublic java.lang.Double getRange()
public void setRange(java.lang.Double range)
range
- new value for rangepublic java.lang.Double getFirePower()
public void setFirePower(java.lang.Double firePower)
firePower
- new value for firePowerpublic java.lang.Double getReloadTime()
public void setReloadTime(java.lang.Double reloadTime)
reloadTime
- new value for reloadTimepublic java.lang.Integer getAmmo()
public void setAmmo(java.lang.Integer ammo)
ammo
- new value for ammo