
            /**
            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.*;    
                
            
            /**
              
		Gives inventory from one bot to another. Bot can give just owned
		items. (in his inventory chain). He can't give weapon he is
		wielding right now. This command is not fully tested yet and has
		issues.
	
                          Corresponding GameBots command is 
                          GIVEINV.
                      
             */
            
            public class
            GiveInventory extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command GiveInventory.
              
		Gives inventory from one bot to another. Bot can give just owned
		items. (in his inventory chain). He can't give weapon he is
		wielding right now. This command is not fully tested yet and has
		issues.
	Corresponding GameBots message for this command is 
              GIVEINV.
                  @param Target Id of the receiving bot.
                  @param ItemId 
			Id of the item in the inventory chain of the giver.
		
              */
             public GiveInventory(
                UnrealId Target,  String ItemId) {
                    
                    this.Target = Target;
                
                    this.ItemId = ItemId;
                
                }
               
            
            		/**
		             Creates new instance of command GiveInventory.
		             
		Gives inventory from one bot to another. Bot can give just owned
		items. (in his inventory chain). He can't give weapon he is
		wielding right now. This command is not fully tested yet and has
		issues.
	Corresponding GameBots message for this command is 
		             GIVEINV.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  GiveInventory() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Id of the receiving bot. */
        protected
         UnrealId Target = 
        	null;
        
        
        /**
        Id of the receiving bot. */
        public
        UnrealId getTarget() {
            return
         Target;
        }
        

        
            /**         
        Id of the receiving bot. */
        public GiveInventory setTarget(UnrealId Target) {
            this.Target = Target;
            return this;
            }
       
        /**
        
			Id of the item in the inventory chain of the giver.
		 */
        protected
         String ItemId = 
        	null;
        
        
        /**
        
			Id of the item in the inventory chain of the giver.
		 */
        public
        String getItemId() {
            return
         ItemId;
        }
        

        
            /**         
        
			Id of the item in the inventory chain of the giver.
		 */
        public GiveInventory setItemId(String ItemId) {
            this.ItemId = ItemId;
            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 GiveInventory(GiveInventory original) {
                
                     this.Target=original.Target;
                
                     this.ItemId=original.ItemId;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Target</b> : " + 
            String.valueOf(Target) + 
            " <br/> " +
             
            "<b>ItemId</b> : " + 
            String.valueOf(ItemId) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("GIVEINV");
              		
		    					if (Target != null) {
		    						buf.append(" {Target " + Target.getUnrealId() + "}");
		    					}
		    				
		    					if (ItemId != null) {
		    						buf.append(" {ItemId " + ItemId + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        