
            /**
            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.*;    
                
            
            /**
              
		We can add custom inventory for specified bot. This command can
		be issued also by bot on the bot itself (in this case Id
		attribute is not parsed). Issuing by bot is allowed just when
		the game has allowed cheating (bAllowCheats = True in BotAPI.ini
		file).
	
                          Corresponding GameBots command is 
                          ADDINV.
                      
             */
            
            public class
            AddInventory extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command AddInventory.
              
		We can add custom inventory for specified bot. This command can
		be issued also by bot on the bot itself (in this case Id
		attribute is not parsed). Issuing by bot is allowed just when
		the game has allowed cheating (bAllowCheats = True in BotAPI.ini
		file).
	Corresponding GameBots message for this command is 
              ADDINV.
                  @param Id 
			Id of the target bot. Is used just when sending command to
			the server. If sending command to the bot Id is ignored and
			ADDINV command is executed on the bot (if bAllowCheats ==
			True).
		
                  @param Type 
			Class of the item we want to add. Must be pickup class (e.g.
			xWeapons.FlakCannonPickup).
		
              */
             public AddInventory(
                UnrealId Id,  String Type) {
                    
                    this.Id = Id;
                
                    this.Type = Type;
                
                }
               
            
            		/**
		             Creates new instance of command AddInventory.
		             
		We can add custom inventory for specified bot. This command can
		be issued also by bot on the bot itself (in this case Id
		attribute is not parsed). Issuing by bot is allowed just when
		the game has allowed cheating (bAllowCheats = True in BotAPI.ini
		file).
	Corresponding GameBots message for this command is 
		             ADDINV.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  AddInventory() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Id of the target bot. Is used just when sending command to
			the server. If sending command to the bot Id is ignored and
			ADDINV command is executed on the bot (if bAllowCheats ==
			True).
		 */
        protected
         UnrealId Id = 
        	null;
        
        
        /**
        
			Id of the target bot. Is used just when sending command to
			the server. If sending command to the bot Id is ignored and
			ADDINV command is executed on the bot (if bAllowCheats ==
			True).
		 */
        public
        UnrealId getId() {
            return
         Id;
        }
        

        
            /**         
        
			Id of the target bot. Is used just when sending command to
			the server. If sending command to the bot Id is ignored and
			ADDINV command is executed on the bot (if bAllowCheats ==
			True).
		 */
        public AddInventory setId(UnrealId Id) {
            this.Id = Id;
            return this;
            }
       
        /**
        
			Class of the item we want to add. Must be pickup class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        protected
         String Type = 
        	null;
        
        
        /**
        
			Class of the item we want to add. Must be pickup class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        public
        String getType() {
            return
         Type;
        }
        

        
            /**         
        
			Class of the item we want to add. Must be pickup class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        public AddInventory setType(String Type) {
            this.Type = Type;
            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 AddInventory(AddInventory original) {
                
                     this.Id=original.Id;
                
                     this.Type=original.Type;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>Type</b> : " + 
            String.valueOf(Type) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("ADDINV");
              		
		    					if (Id != null) {
		    						buf.append(" {Id " + Id.getUnrealId() + "}");
		    					}
		    				
		    					if (Type != null) {
		    						buf.append(" {Type " + Type + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        