
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbinfomessages BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages;
	    		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.*;    
                
            
            /**
              
		Asynchronous message. A boolean result of a checkreach call.
	
                          Corresponding GameBots message is 
                          RCH.
                      
             */
            
            public class
            Reachable
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"RCH {Id text} {Reachable False} {From 0,0,0}";
    
            
            /////// Properties BEGIN
            
        /**
        
			An Id matching the one sent by client. Allows bot to match
			answer with right querry.
		 */
        protected
         String Id = 
        	null;
        
        
        /**
        
			An Id matching the one sent by client. Allows bot to match
			answer with right querry.
		 */
        public
        String getId() {
            return
         Id;
        }
        

        
        /**
        
			True if the bot can run here directly, false otherwise.
		 */
        protected
         boolean Reachable = 
        	false;
        
        
        /**
        
			True if the bot can run here directly, false otherwise.
		 */
        public
        boolean isReachable() {
            return
         Reachable;
        }
        

        
        /**
        
			Exact location of bot at time of check.
		 */
        protected
         Location From = 
        	null;
        
        
        /**
        
			Exact location of bot at time of check.
		 */
        public
        Location getFrom() {
            return
         From;
        }
        

        
            /////// 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 Reachable(Reachable original) {
                
                     this.Id=original.Id;
                
                     this.Reachable=original.Reachable;
                
                     this.From=original.From;
                
             }   
             
             
                 /**
                  * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
                  */
	             public Reachable() {
	             }
             
                
                 
            public String toString() {
                return
                
                		super.toString() + " | " +
                		
				               "Id = " + 
				               String.valueOf(Id) + " | " +
				            
				               "Reachable = " + 
				               String.valueOf(Reachable) + " | " +
				            
				               "From = " + 
				               String.valueOf(From) + " | " +
				             "";
                	 
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>Reachable</b> : " + 
            String.valueOf(Reachable) + 
            " <br/> " +
             
            "<b>From</b> : " + 
            String.valueOf(From) + 
            " <br/> " +
             "";
             }            
             
             
             
             }
                         
        