
            /**
            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.*;    
                
            
            /**
              Turns the bot by a specified amount.
                          Corresponding GameBots command is 
                          ROTATE.
                      
             */
            
            public class
            Rotate extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command Rotate.
              Turns the bot by a specified amount.Corresponding GameBots message for this command is 
              ROTATE.
                  @param Amount 
			Amount in UT units to rotate. May be negative to rotate
			counter clockwise.
		
                  @param Axis 
			If provided as "Vertical", rotation will be done to Pitch
			(up/down). Any other value, or not provided, and rotation
			will be to Yaw (left/right).
		
              */
             public Rotate(
                int Amount,  String Axis) {
                    
                    this.Amount = Amount;
                
                    this.Axis = Axis;
                
                }
               
            
            		/**
		             Creates new instance of command Rotate.
		             Turns the bot by a specified amount.Corresponding GameBots message for this command is 
		             ROTATE.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  Rotate() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Amount in UT units to rotate. May be negative to rotate
			counter clockwise.
		 */
        protected
         int Amount = 
        	0;
        
        
        /**
        
			Amount in UT units to rotate. May be negative to rotate
			counter clockwise.
		 */
        public
        int getAmount() {
            return
         Amount;
        }
        

        
            /**         
        
			Amount in UT units to rotate. May be negative to rotate
			counter clockwise.
		 */
        public Rotate setAmount(int Amount) {
            this.Amount = Amount;
            return this;
            }
       
        /**
        
			If provided as "Vertical", rotation will be done to Pitch
			(up/down). Any other value, or not provided, and rotation
			will be to Yaw (left/right).
		 */
        protected
         String Axis = 
        	null;
        
        
        /**
        
			If provided as "Vertical", rotation will be done to Pitch
			(up/down). Any other value, or not provided, and rotation
			will be to Yaw (left/right).
		 */
        public
        String getAxis() {
            return
         Axis;
        }
        

        
            /**         
        
			If provided as "Vertical", rotation will be done to Pitch
			(up/down). Any other value, or not provided, and rotation
			will be to Yaw (left/right).
		 */
        public Rotate setAxis(String Axis) {
            this.Axis = Axis;
            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 Rotate(Rotate original) {
                
                     this.Amount=original.Amount;
                
                     this.Axis=original.Axis;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Amount</b> : " + 
            String.valueOf(Amount) + 
            " <br/> " +
             
            "<b>Axis</b> : " + 
            String.valueOf(Axis) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("ROTATE");
              		
		    					buf.append(" {Amount " + Amount + "}");
		    				
		    					if (Axis != null) {
		    						buf.append(" {Axis " + Axis + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        