
            /**
            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.*;    
                
            
            /**
              
		Start firing your weapon (until receives STOPSHOOT command, or
		run out of ammo or die).
	
                          Corresponding GameBots command is 
                          SHOOT.
                      
             */
            
            public class
            Shoot extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command Shoot.
              
		Start firing your weapon (until receives STOPSHOOT command, or
		run out of ammo or die).
	Corresponding GameBots message for this command is 
              SHOOT.
                  @param Location Location you want to shoot at.
                  @param Target 
			The unique Id of your target. If you specify a target, and
			it is visible to you, the server will provide aim correction
			and target leading for you. If not you just shoot at the
			location specified.
		
                  @param Alt 
			If you send True to this you will alt fire instead of normal
			fire. For normal fire you don't need to send this argument
			at all.
		
              */
             public Shoot(
                Location Location,  UnrealId Target,  boolean Alt) {
                    
                    this.Location = Location;
                
                    this.Target = Target;
                
                    this.Alt = Alt;
                
                }
               
            
            		/**
		             Creates new instance of command Shoot.
		             
		Start firing your weapon (until receives STOPSHOOT command, or
		run out of ammo or die).
	Corresponding GameBots message for this command is 
		             SHOOT.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  Shoot() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Location you want to shoot at. */
        protected
         Location Location = 
        	null;
        
        
        /**
        Location you want to shoot at. */
        public
        Location getLocation() {
            return
         Location;
        }
        

        
            /**         
        Location you want to shoot at. */
        public Shoot setLocation(Location Location) {
            this.Location = Location;
            return this;
            }
       
        /**
        
			The unique Id of your target. If you specify a target, and
			it is visible to you, the server will provide aim correction
			and target leading for you. If not you just shoot at the
			location specified.
		 */
        protected
         UnrealId Target = 
        	null;
        
        
        /**
        
			The unique Id of your target. If you specify a target, and
			it is visible to you, the server will provide aim correction
			and target leading for you. If not you just shoot at the
			location specified.
		 */
        public
        UnrealId getTarget() {
            return
         Target;
        }
        

        
            /**         
        
			The unique Id of your target. If you specify a target, and
			it is visible to you, the server will provide aim correction
			and target leading for you. If not you just shoot at the
			location specified.
		 */
        public Shoot setTarget(UnrealId Target) {
            this.Target = Target;
            return this;
            }
       
        /**
        
			If you send True to this you will alt fire instead of normal
			fire. For normal fire you don't need to send this argument
			at all.
		 */
        protected
         boolean Alt = 
        	false;
        
        
        /**
        
			If you send True to this you will alt fire instead of normal
			fire. For normal fire you don't need to send this argument
			at all.
		 */
        public
        boolean isAlt() {
            return
         Alt;
        }
        

        
            /**         
        
			If you send True to this you will alt fire instead of normal
			fire. For normal fire you don't need to send this argument
			at all.
		 */
        public Shoot setAlt(boolean Alt) {
            this.Alt = Alt;
            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 Shoot(Shoot original) {
                
                     this.Location=original.Location;
                
                     this.Target=original.Target;
                
                     this.Alt=original.Alt;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Location</b> : " + 
            String.valueOf(Location) + 
            " <br/> " +
             
            "<b>Target</b> : " + 
            String.valueOf(Target) + 
            " <br/> " +
             
            "<b>Alt</b> : " + 
            String.valueOf(Alt) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SHOOT");
              		
                                if (Location != null) {
                                    buf.append(" {Location " + 
                                        Location.getX() + "," + 
                                        Location.getY() + "," + 
                                        Location.getZ() + "}");
                                }
                            
		    					if (Target != null) {
		    						buf.append(" {Target " + Target.getUnrealId() + "}");
		    					}
		    				
		    					buf.append(" {Alt " + Alt + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        