
            /**
            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.*;    
                
            
            /**
              
		Cancels some dialog, hiding him from screen. The dialog sends DLGCMD with Command CANCEL and latest available data as confirmation.
	
                          Corresponding GameBots command is 
                          DLGCANCEL.
                      
             */
            
            public class
            DialogCancel extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command DialogCancel.
              
		Cancels some dialog, hiding him from screen. The dialog sends DLGCMD with Command CANCEL and latest available data as confirmation.
	Corresponding GameBots message for this command is 
              DLGCANCEL.
                  @param Player Name of the player on who's HUD is the dialog.
                  @param Id Id of the cancelled dialog.
              */
             public DialogCancel(
                String Player,  String Id) {
                    
                    this.Player = Player;
                
                    this.Id = Id;
                
                }
               
            
            		/**
		             Creates new instance of command DialogCancel.
		             
		Cancels some dialog, hiding him from screen. The dialog sends DLGCMD with Command CANCEL and latest available data as confirmation.
	Corresponding GameBots message for this command is 
		             DLGCANCEL.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  DialogCancel() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the player on who's HUD is the dialog. */
        protected
         String Player = 
        	null;
        
        
        /**
        Name of the player on who's HUD is the dialog. */
        public
        String getPlayer() {
            return
         Player;
        }
        

        
            /**         
        Name of the player on who's HUD is the dialog. */
        public DialogCancel setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        Id of the cancelled dialog. */
        protected
         String Id = 
        	null;
        
        
        /**
        Id of the cancelled dialog. */
        public
        String getId() {
            return
         Id;
        }
        

        
            /**         
        Id of the cancelled dialog. */
        public DialogCancel setId(String Id) {
            this.Id = Id;
            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 DialogCancel(DialogCancel original) {
                
                     this.Player=original.Player;
                
                     this.Id=original.Id;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Player</b> : " + 
            String.valueOf(Player) + 
            " <br/> " +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("DLGCANCEL");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					if (Id != null) {
		    						buf.append(" {Id " + Id + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        