
            /**
            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 the player can control his character (movement, shooting...)
	
                          Corresponding GameBots command is 
                          SETPLRCTRL.
                      
             */
            
            public class
            SetPlayerControl extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command SetPlayerControl.
              
		Sets whether the player can control his character (movement, shooting...)
	Corresponding GameBots message for this command is 
              SETPLRCTRL.
                  @param Player Name of the affected player.
                  @param Control If true, the player can behave normally. If false, the player cannot perform any action.
              */
             public SetPlayerControl(
                String Player,  boolean Control) {
                    
                    this.Player = Player;
                
                    this.Control = Control;
                
                }
               
            
            		/**
		             Creates new instance of command SetPlayerControl.
		             
		Sets whether the player can control his character (movement, shooting...)
	Corresponding GameBots message for this command is 
		             SETPLRCTRL.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  SetPlayerControl() {
            		}
            	
            
            /////// 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 SetPlayerControl 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 Control = 
        	false;
        
        
        /**
        If true, the player can behave normally. If false, the player cannot perform any action. */
        public
        boolean isControl() {
            return
         Control;
        }
        

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