/*
 * Weapon.java
 *
 * CSCE 155 Fall 2005
 * Assignment 1
 * @author
 * @version
 */

import java.io.*;

/**
 * Used to test the functionality of the weapons system of a plane
 * 
 * This class allows the application class to test the functionality of the 
 * primary and secondary weapons of a plane/starship
 * <p>
 * 
 * @author 
 * @version 
 */

public class Weapon {
    
     
    
    //------------------Declare Constants---------------------------------------
    
    /**
     * Represents the default value of the primary weapon of this plane object
     */
    private final String DEFAULT_PRIMARY_WEAPON = "Four Laser Canons";
    
    /**
     * Represents the default value of the secondary weapon of this plane object
     */
    private final String DEFAULT_SECONDARY_WEAPON = "Two Proton Torpedo Launchers";
    
    
    //-------------Declare private variables-----------------------------------
    
    /**
     * Represents primary weapon of this plane
     */
    private String primaryWeapon;
    
    /**
     * Represents the secondary weapon of this plane
     */
    private String secondaryWeapon;
    
    
    /**
     * Constructor used to create this object.  Responsible for setting
     * this object's primary and secondary weapon systems to their
     * corresponding default values
     */
    public Weapon() {
        this.primaryWeapon = this.DEFAULT_PRIMARY_WEAPON;
        this.secondaryWeapon = this.DEFAULT_SECONDARY_WEAPON;
    }

    
    /**
     * Returns the secondary weapon of this object 
     * @return <code>String</code> Name of the secondary weapon of this object
     */
    public String getSecondaryWeapon() {
        return secondaryWeapon;
    }

    /**
     * Sets the secondary weapon of this object
     * @param secondaryWeapon the name of the secondary weapon
     */
    public void setSecondaryWeapon(String secondaryWeapon) {
        this.secondaryWeapon = secondaryWeapon;
    }
    
    //--------------------------------------------------------------------------
    //Please complete the code and docmentation for the
    //following methods
    //--------------------------------------------------------------------------

    public String getPrimaryWeapon() {
        return primaryWeapon;
    }

    public void setPrimaryWeapon(String primaryWeapon) {
        
        this.primaryWeapon = primaryWeapon;       
    }
    
    
    
   // --------------------------------------------------------------------------
    // In the following, we will just have some "simulated" methods since you do
    // do not have enough background to actually implement the following
    // behavior.  Our simulation is simply to printout a statement "performing"
    // an action.  Use your imagination!
    // --------------------------------------------------------------------------
    public void Test(){
        
        System.out.println("Testing the Weapons System...");
        
        /////////////////Please Complete the Rest///////////
        
        
    }//end of Test
    
    
}//end of class Weapon

