
            /**
            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.*;    
                
            
            /**
              
		Check to see if you can move directly to a destination without
		hitting an obstruction, falling in a pit, etc. Responding with
		RCH message.
	
                          Corresponding GameBots command is 
                          CHECKREACH.
                      
             */
            
            public class
            CheckReachability extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command CheckReachability.
              
		Check to see if you can move directly to a destination without
		hitting an obstruction, falling in a pit, etc. Responding with
		RCH message.
	Corresponding GameBots message for this command is 
              CHECKREACH.
                  @param Id 
			Message Id made up by you and echoed in response so you can
			match up response with query.
		
                  @param Target 
			The unique Id of a player/object/nav point/whatever.
		
                  @param Location 
			Location you want to go to. Normal location rules. Only used
			if no Target is sent.
		
              */
             public CheckReachability(
                String Id,  UnrealId Target,  Location Location) {
                    
                    this.Id = Id;
                
                    this.Target = Target;
                
                    this.Location = Location;
                
                }
               
            
            		/**
		             Creates new instance of command CheckReachability.
		             
		Check to see if you can move directly to a destination without
		hitting an obstruction, falling in a pit, etc. Responding with
		RCH message.
	Corresponding GameBots message for this command is 
		             CHECKREACH.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  CheckReachability() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Message Id made up by you and echoed in response so you can
			match up response with query.
		 */
        protected
         String Id = 
        	null;
        
        
        /**
        
			Message Id made up by you and echoed in response so you can
			match up response with query.
		 */
        public
        String getId() {
            return
         Id;
        }
        

        
            /**         
        
			Message Id made up by you and echoed in response so you can
			match up response with query.
		 */
        public CheckReachability setId(String Id) {
            this.Id = Id;
            return this;
            }
       
        /**
        
			The unique Id of a player/object/nav point/whatever.
		 */
        protected
         UnrealId Target = 
        	null;
        
        
        /**
        
			The unique Id of a player/object/nav point/whatever.
		 */
        public
        UnrealId getTarget() {
            return
         Target;
        }
        

        
            /**         
        
			The unique Id of a player/object/nav point/whatever.
		 */
        public CheckReachability setTarget(UnrealId Target) {
            this.Target = Target;
            return this;
            }
       
        /**
        
			Location you want to go to. Normal location rules. Only used
			if no Target is sent.
		 */
        protected
         Location Location = 
        	null;
        
        
        /**
        
			Location you want to go to. Normal location rules. Only used
			if no Target is sent.
		 */
        public
        Location getLocation() {
            return
         Location;
        }
        

        
            /**         
        
			Location you want to go to. Normal location rules. Only used
			if no Target is sent.
		 */
        public CheckReachability setLocation(Location Location) {
            this.Location = Location;
            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 CheckReachability(CheckReachability original) {
                
                     this.Id=original.Id;
                
                     this.Target=original.Target;
                
                     this.Location=original.Location;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>Target</b> : " + 
            String.valueOf(Target) + 
            " <br/> " +
             
            "<b>Location</b> : " + 
            String.valueOf(Location) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("CHECKREACH");
              		
		    					if (Id != null) {
		    						buf.append(" {Id " + Id + "}");
		    					}
		    				
		    					if (Target != null) {
		    						buf.append(" {Target " + Target.getUnrealId() + "}");
		    					}
		    				
                                if (Location != null) {
                                    buf.append(" {Location " + 
                                        Location.getX() + "," + 
                                        Location.getY() + "," + 
                                        Location.getZ() + "}");
                                }
                                        
            		return buf.toString();
            }
             
             }
                         
        