
            /**
            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.*;    
                
            
            /**
              
		Plays some sound.		
	
                          Corresponding GameBots command is 
                          PLSND.
                      
             */
            
            public class
            PlaySound extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command PlaySound.
              
		Plays some sound.		
	Corresponding GameBots message for this command is 
              PLSND.
                  @param Player Name of the affected player.
                  @param Sound Name of the sound that should be played.
              */
             public PlaySound(
                String Player,  String Sound) {
                    
                    this.Player = Player;
                
                    this.Sound = Sound;
                
                }
               
            
            		/**
		             Creates new instance of command PlaySound.
		             
		Plays some sound.		
	Corresponding GameBots message for this command is 
		             PLSND.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  PlaySound() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the affected player. */
        protected
         String Player = 
        	null;
        
        
        /**
        Name of the affected player. */
        public
        String getPlayer() {
            return
         Player;
        }
        

        
            /**         
        Name of the affected player. */
        public PlaySound setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        Name of the sound that should be played. */
        protected
         String Sound = 
        	null;
        
        
        /**
        Name of the sound that should be played. */
        public
        String getSound() {
            return
         Sound;
        }
        

        
            /**         
        Name of the sound that should be played. */
        public PlaySound setSound(String Sound) {
            this.Sound = Sound;
            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 PlaySound(PlaySound original) {
                
                     this.Player=original.Player;
                
                     this.Sound=original.Sound;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Player</b> : " + 
            String.valueOf(Player) + 
            " <br/> " +
             
            "<b>Sound</b> : " + 
            String.valueOf(Sound) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("PLSND");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					if (Sound != null) {
		    						buf.append(" {Sound " + Sound + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        