
            /**
            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.*;    
                
            
            /**
              
		Only command that is able to move vehicles. Turn towards target 
		specified and move directly to its destination. If there is
		an obstacle between target and current position, you will hit it on
		your way to target (no obstacle avoidance).
	
                          Corresponding GameBots command is 
                          DRIVETO.
                      
             */
            
            public class
            DriveTo extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command DriveTo.
              
		Only command that is able to move vehicles. Turn towards target 
		specified and move directly to its destination. If there is
		an obstacle between target and current position, you will hit it on
		your way to target (no obstacle avoidance).
	Corresponding GameBots message for this command is 
              DRIVETO.
                  @param Target 
			The unique id of a NavPoint, Mover or item (beware, not all of the items
			have unique id). Recommended is to specify NavPoint Id as it is always unique.
			Won't work with player IDs.
		
              */
             public DriveTo(
                UnrealId Target) {
                    
                    this.Target = Target;
                
                }
               
            
            		/**
		             Creates new instance of command DriveTo.
		             
		Only command that is able to move vehicles. Turn towards target 
		specified and move directly to its destination. If there is
		an obstacle between target and current position, you will hit it on
		your way to target (no obstacle avoidance).
	Corresponding GameBots message for this command is 
		             DRIVETO.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  DriveTo() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			The unique id of a NavPoint, Mover or item (beware, not all of the items
			have unique id). Recommended is to specify NavPoint Id as it is always unique.
			Won't work with player IDs.
		 */
        protected
         UnrealId Target = 
        	null;
        
        
        /**
        
			The unique id of a NavPoint, Mover or item (beware, not all of the items
			have unique id). Recommended is to specify NavPoint Id as it is always unique.
			Won't work with player IDs.
		 */
        public
        UnrealId getTarget() {
            return
         Target;
        }
        

        
            /**         
        
			The unique id of a NavPoint, Mover or item (beware, not all of the items
			have unique id). Recommended is to specify NavPoint Id as it is always unique.
			Won't work with player IDs.
		 */
        public DriveTo setTarget(UnrealId Target) {
            this.Target = Target;
            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 DriveTo(DriveTo original) {
                
                     this.Target=original.Target;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Target</b> : " + 
            String.valueOf(Target) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("DRIVETO");
              		
		    					if (Target != null) {
		    						buf.append(" {Target " + Target.getUnrealId() + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        