
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;
	    		import java.util.*;    
    import javax.vecmath.*;    
    import cz.cuni.amis.pogamut.base.communication.messages.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.*;    
    import cz.cuni.amis.pogamut.base.agent.worldview.objects.*;    
    import cz.cuni.amis.pogamut.base.communication.translator.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;    
    import cz.cuni.amis.pogamut.base.exceptions.*;    
    import cz.cuni.amis.pogamut.base3d.worldview.objects.*;    
    import cz.cuni.amis.pogamut.ut2004.communication.messages.*;    
    import cz.cuni.amis.pogamut.ut2004.agent.worldview.objects.*;    
                
            
            /**
              Switch the bots weapon to another.
                          Corresponding GameBots command is 
                          CHANGEWEAPON.
                      
             */
            
            public class
            ChangeWeapon extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command ChangeWeapon.
              Switch the bots weapon to another.Corresponding GameBots message for this command is 
              CHANGEWEAPON.
                  @param Id 
			Unique Id of weapon to switch to. If you just send "Best" as
			Id, the server will pick your best weapon that still has
			ammo for you. Obtain Unique Id's from AIN messages. Be
			carefull, the weapon Id in bots inventory is different from
			the Ids of weapons that are lying in the map!
		
              */
             public ChangeWeapon(
                String Id) {
                    
                    this.Id = Id;
                
                }
               
            
            		/**
		             Creates new instance of command ChangeWeapon.
		             Switch the bots weapon to another.Corresponding GameBots message for this command is 
		             CHANGEWEAPON.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  ChangeWeapon() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Unique Id of weapon to switch to. If you just send "Best" as
			Id, the server will pick your best weapon that still has
			ammo for you. Obtain Unique Id's from AIN messages. Be
			carefull, the weapon Id in bots inventory is different from
			the Ids of weapons that are lying in the map!
		 */
        protected
         String Id = 
        	null;
        
        
        /**
        
			Unique Id of weapon to switch to. If you just send "Best" as
			Id, the server will pick your best weapon that still has
			ammo for you. Obtain Unique Id's from AIN messages. Be
			carefull, the weapon Id in bots inventory is different from
			the Ids of weapons that are lying in the map!
		 */
        public
        String getId() {
            return
         Id;
        }
        

        
            /**         
        
			Unique Id of weapon to switch to. If you just send "Best" as
			Id, the server will pick your best weapon that still has
			ammo for you. Obtain Unique Id's from AIN messages. Be
			carefull, the weapon Id in bots inventory is different from
			the Ids of weapons that are lying in the map!
		 */
        public ChangeWeapon setId(String Id) {
            this.Id = Id;
            return this;
            }
       
            /////// Properties END
            
            /////// Extra Java code BEGIN
                        	
            	/////// Additional code from xslt BEGIN            	 
            			
            		
            		
            	/////// Additional code from xslt END            
				                    
	            /////// Extra Java from XML BEGIN
            		
            	/////// Extra Java from XML END
            	    
            /////// Extra Java code END
            
            
            
            /**
              * Cloning constructor.
              */
             public ChangeWeapon(ChangeWeapon original) {
                
                     this.Id=original.Id;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("CHANGEWEAPON");
              		
		    					if (Id != null) {
		    						buf.append(" {Id " + Id + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        