
            /**
            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.*;    
                
            
            /**
              
		Will change map to MapName - map must exist on server (won't be
		tested), will send MAPCHANGE message. When map change occurs all
		connections to the server will be shutted down.
	
                          Corresponding GameBots command is 
                          CHANGEMAP.
                      
             */
            
            public class
            ChangeMap extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command ChangeMap.
              
		Will change map to MapName - map must exist on server (won't be
		tested), will send MAPCHANGE message. When map change occurs all
		connections to the server will be shutted down.
	Corresponding GameBots message for this command is 
              CHANGEMAP.
                  @param MapName Name of the new map.
              */
             public ChangeMap(
                String MapName) {
                    
                    this.MapName = MapName;
                
                }
               
            
            		/**
		             Creates new instance of command ChangeMap.
		             
		Will change map to MapName - map must exist on server (won't be
		tested), will send MAPCHANGE message. When map change occurs all
		connections to the server will be shutted down.
	Corresponding GameBots message for this command is 
		             CHANGEMAP.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  ChangeMap() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the new map. */
        protected
         String MapName = 
        	null;
        
        
        /**
        Name of the new map. */
        public
        String getMapName() {
            return
         MapName;
        }
        

        
            /**         
        Name of the new map. */
        public ChangeMap setMapName(String MapName) {
            this.MapName = MapName;
            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 ChangeMap(ChangeMap original) {
                
                     this.MapName=original.MapName;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>MapName</b> : " + 
            String.valueOf(MapName) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("CHANGEMAP");
              		
		    					if (MapName != null) {
		    						buf.append(" {MapName " + MapName + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        