Unit JavaScript is disabled on your browser. model

Class Unit

    All Implemented Interfaces:
    java.io.Serializable


    public class Unit
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    caglar
    See Also:
    Serialized Form

      Field Detail

        id

        private java.lang.Integer id
        Attribute id.

        name

        private java.lang.String name
        Attribute name.

        health

        private java.lang.Integer health
        Attribute health.

        velocity

        private java.lang.Integer velocity
        Attribute velocity.

        position

        private Position position
        Attribute position.

        direction

        private Direction direction
        Attribute direction.

        altitude

        private java.lang.Double altitude
        Attribute altitude.

        weapons

        private java.util.ArrayList<Weapon> weapons
        Attribute weapons list

        armor

        private java.lang.Integer armor
        Attribute armor.

      Constructor Detail

        Unit

        public Unit()

      Method Detail

        getId

        public java.lang.Integer getId()
        Returns:
        id

        setId

        public void setId(java.lang.Integer id)
        Parameters:
        id - new value for id

        getName

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

        setName

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

        getHealth

        public java.lang.Integer getHealth()
        Returns:
        health

        setHealth

        public void setHealth(java.lang.Integer health)
        Parameters:
        health - new value for health

        getArmor

        public java.lang.Integer getArmor()
        Returns:
        armor

        setArmor

        public void setArmor(java.lang.Integer armor)
        Parameters:
        armor - new value for armor

        getVelocity

        public java.lang.Integer getVelocity()
        Returns:
        velocity

        setVelocity

        public void setVelocity(java.lang.Integer velocity)
        Parameters:
        velocity - new value for velocity

        getPosition

        public Position getPosition()
        Returns:
        position

        setPosition

        public void setPosition(Position position)
        Parameters:
        positon - new value for position

        getAltitude

        public java.lang.Double getAltitude()
        Returns:
        altitude

        setAltitude

        public void setAltitude(java.lang.Double altitude)
        Parameters:
        altitude - new value for altitude

        getWeapons

        public java.util.ArrayList<Weapon> getWeapons()
        Returns:
        weapons

        setWeapons

        public void setWeapons(java.util.ArrayList<Weapon> weapons)
        Parameters:
        weapons - new value for weapons

        getDirection

        public Direction getDirection()
        Returns:
        direction

        setDirection

        public void setDirection(Direction direction)
        Parameters:
        direction - new value for direction