
            /**
            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.*;    
                
            
            /**
              
		Will change the specified attribute of the 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 
                          CHATTR.
                      
             */
            
            public class
            ChangeAttribute extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command ChangeAttribute.
              
		Will change the specified attribute of the 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 
              CHATTR.
                  @param Id 
			Id of the target bot. Not used if sent as a command for the
			bot.
		
                  @param Health Sets the bot health.
                  @param Adrenaline Sets the bot adrenaline.
              */
             public ChangeAttribute(
                UnrealId Id,  int Health,  int Adrenaline) {
                    
                    this.Id = Id;
                
                    this.Health = Health;
                
                    this.Adrenaline = Adrenaline;
                
                }
               
            
            		/**
		             Creates new instance of command ChangeAttribute.
		             
		Will change the specified attribute of the 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 
		             CHATTR.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  ChangeAttribute() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Id of the target bot. Not used if sent as a command for the
			bot.
		 */
        protected
         UnrealId Id = 
        	null;
        
        
        /**
        
			Id of the target bot. Not used if sent as a command for the
			bot.
		 */
        public
        UnrealId getId() {
            return
         Id;
        }
        

        
            /**         
        
			Id of the target bot. Not used if sent as a command for the
			bot.
		 */
        public ChangeAttribute setId(UnrealId Id) {
            this.Id = Id;
            return this;
            }
       
        /**
        Sets the bot health. */
        protected
         int Health = 
        	0;
        
        
        /**
        Sets the bot health. */
        public
        int getHealth() {
            return
         Health;
        }
        

        
            /**         
        Sets the bot health. */
        public ChangeAttribute setHealth(int Health) {
            this.Health = Health;
            return this;
            }
       
        /**
        Sets the bot adrenaline. */
        protected
         int Adrenaline = 
        	0;
        
        
        /**
        Sets the bot adrenaline. */
        public
        int getAdrenaline() {
            return
         Adrenaline;
        }
        

        
            /**         
        Sets the bot adrenaline. */
        public ChangeAttribute setAdrenaline(int Adrenaline) {
            this.Adrenaline = Adrenaline;
            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 ChangeAttribute(ChangeAttribute original) {
                
                     this.Id=original.Id;
                
                     this.Health=original.Health;
                
                     this.Adrenaline=original.Adrenaline;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>Health</b> : " + 
            String.valueOf(Health) + 
            " <br/> " +
             
            "<b>Adrenaline</b> : " + 
            String.valueOf(Adrenaline) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("CHATTR");
              		
		    					if (Id != null) {
		    						buf.append(" {Id " + Id.getUnrealId() + "}");
		    					}
		    				
		    					buf.append(" {Health " + Health + "}");
		    				
		    					buf.append(" {Adrenaline " + Adrenaline + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        