Weapon JavaScript is disabled on your browser. model

Class Weapon

    All Implemented Interfaces:
    java.io.Serializable


    public class Weapon
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form

      Field Summary

      Fields 
      Modifier and Type Field and Description
      private java.lang.Integer ammo Attribute ammo.
      private java.lang.Double firePower Attribute firePower.
      private java.lang.String name Attribute name.
      private java.lang.Double range Attribute range.
      private java.lang.Double reloadTime Attribute relaodTime.

      Constructor Summary

      Constructors 
      Constructor and Description
      Weapon() 

      Method Summary

      Methods 
      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) 

        Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

      Field Detail

        name

        private java.lang.String name
        Attribute name.

        range

        private java.lang.Double range
        Attribute range.

        firePower

        private java.lang.Double firePower
        Attribute firePower.

        reloadTime

        private java.lang.Double reloadTime
        Attribute relaodTime.

        ammo

        private java.lang.Integer ammo
        Attribute ammo.

      Constructor Detail

        Weapon

        public Weapon()

      Method Detail

        getName

        public java.lang.String getName()
        Returns:
        name

        setName

        public void setName(java.lang.String name)
        Parameters:
        name - new value for name

        getRange

        public java.lang.Double getRange()
        Returns:
        range

        setRange

        public void setRange(java.lang.Double range)
        Parameters:
        range - new value for range

        getFirePower

        public java.lang.Double getFirePower()
        Returns:
        firePower

        setFirePower

        public void setFirePower(java.lang.Double firePower)
        Parameters:
        firePower - new value for firePower

        getReloadTime

        public java.lang.Double getReloadTime()
        Returns:
        reloadTime

        setReloadTime

        public void setReloadTime(java.lang.Double reloadTime)
        Parameters:
        reloadTime - new value for reloadTime

        getAmmo

        public java.lang.Integer getAmmo()
        Returns:
        ammo

        setAmmo

        public void setAmmo(java.lang.Integer ammo)
        Parameters:
        ammo - new value for ammo