
            /**
            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.*;    
                
            
            /**
              
		Ends a batch of DialogItem commands, showing the dialog on screen.
	
                          Corresponding GameBots command is 
                          DLGEND.
                      
             */
            
            public class
            DialogEnd extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command DialogEnd.
              
		Ends a batch of DialogItem commands, showing the dialog on screen.
	Corresponding GameBots message for this command is 
              DLGEND.
                  @param Player Name of the player on who's HUD should be the dialog shown.
                  @param Id Dialog identification. This should be an unique positive integer.
              */
             public DialogEnd(
                String Player,  String Id) {
                    
                    this.Player = Player;
                
                    this.Id = Id;
                
                }
               
            
            		/**
		             Creates new instance of command DialogEnd.
		             
		Ends a batch of DialogItem commands, showing the dialog on screen.
	Corresponding GameBots message for this command is 
		             DLGEND.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  DialogEnd() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the player on who's HUD should be the dialog shown. */
        protected
         String Player = 
        	null;
        
        
        /**
        Name of the player on who's HUD should be the dialog shown. */
        public
        String getPlayer() {
            return
         Player;
        }
        

        
            /**         
        Name of the player on who's HUD should be the dialog shown. */
        public DialogEnd setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        Dialog identification. This should be an unique positive integer. */
        protected
         String Id = 
        	null;
        
        
        /**
        Dialog identification. This should be an unique positive integer. */
        public
        String getId() {
            return
         Id;
        }
        

        
            /**         
        Dialog identification. This should be an unique positive integer. */
        public DialogEnd 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 DialogEnd(DialogEnd 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("DLGEND");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					if (Id != null) {
		    						buf.append(" {Id " + Id + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        