
            /**
            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.*;    
                
            
            /**
              
		Sets whether all key (not mouse) events should be sent through the KEYEVENT message.
	
                          Corresponding GameBots command is 
                          SETSENDKEYS.
                      
             */
            
            public class
            SetSendKeys extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command SetSendKeys.
              
		Sets whether all key (not mouse) events should be sent through the KEYEVENT message.
	Corresponding GameBots message for this command is 
              SETSENDKEYS.
                  @param Player Name of the affected player.
                  @param Send If true, the player can behave normally. If false, the player cannot perform any action.
              */
             public SetSendKeys(
                String Player,  boolean Send) {
                    
                    this.Player = Player;
                
                    this.Send = Send;
                
                }
               
            
            		/**
		             Creates new instance of command SetSendKeys.
		             
		Sets whether all key (not mouse) events should be sent through the KEYEVENT message.
	Corresponding GameBots message for this command is 
		             SETSENDKEYS.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  SetSendKeys() {
            		}
            	
            
            /////// 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 SetSendKeys setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        If true, the player can behave normally. If false, the player cannot perform any action. */
        protected
         boolean Send = 
        	false;
        
        
        /**
        If true, the player can behave normally. If false, the player cannot perform any action. */
        public
        boolean isSend() {
            return
         Send;
        }
        

        
            /**         
        If true, the player can behave normally. If false, the player cannot perform any action. */
        public SetSendKeys setSend(boolean Send) {
            this.Send = Send;
            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 SetSendKeys(SetSendKeys original) {
                
                     this.Player=original.Player;
                
                     this.Send=original.Send;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Player</b> : " + 
            String.valueOf(Player) + 
            " <br/> " +
             
            "<b>Send</b> : " + 
            String.valueOf(Send) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SETSENDKEYS");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					buf.append(" {Send " + Send + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        