
            /**
            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.*;    
                
            
            /**
              
		Command for changing the bot team. Responds with TEAMCHANGE
		message. This command can be issued also by bot on the bot
		itself (in this case Id attribute is not parsed).
	
                          Corresponding GameBots command is 
                          CHANGETEAM.
                      
             */
            
            public class
            ChangeTeam extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command ChangeTeam.
              
		Command for changing the bot team. Responds with TEAMCHANGE
		message. This command can be issued also by bot on the bot
		itself (in this case Id attribute is not parsed).
	Corresponding GameBots message for this command is 
              CHANGETEAM.
                  @param Id 
			Id of the target bot (won't be parsed if sent to bot
			connection).
		
                  @param Team 
			This is the team we want to change to (0 for red, 1 for
			blue, etc.).
		
              */
             public ChangeTeam(
                UnrealId Id,  int Team) {
                    
                    this.Id = Id;
                
                    this.Team = Team;
                
                }
               
            
            		/**
		             Creates new instance of command ChangeTeam.
		             
		Command for changing the bot team. Responds with TEAMCHANGE
		message. This command can be issued also by bot on the bot
		itself (in this case Id attribute is not parsed).
	Corresponding GameBots message for this command is 
		             CHANGETEAM.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  ChangeTeam() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Id of the target bot (won't be parsed if sent to bot
			connection).
		 */
        protected
         UnrealId Id = 
        	null;
        
        
        /**
        
			Id of the target bot (won't be parsed if sent to bot
			connection).
		 */
        public
        UnrealId getId() {
            return
         Id;
        }
        

        
            /**         
        
			Id of the target bot (won't be parsed if sent to bot
			connection).
		 */
        public ChangeTeam setId(UnrealId Id) {
            this.Id = Id;
            return this;
            }
       
        /**
        
			This is the team we want to change to (0 for red, 1 for
			blue, etc.).
		 */
        protected
         int Team = 
        	0;
        
        
        /**
        
			This is the team we want to change to (0 for red, 1 for
			blue, etc.).
		 */
        public
        int getTeam() {
            return
         Team;
        }
        

        
            /**         
        
			This is the team we want to change to (0 for red, 1 for
			blue, etc.).
		 */
        public ChangeTeam setTeam(int Team) {
            this.Team = Team;
            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 ChangeTeam(ChangeTeam original) {
                
                     this.Id=original.Id;
                
                     this.Team=original.Team;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Id</b> : " + 
            String.valueOf(Id) + 
            " <br/> " +
             
            "<b>Team</b> : " + 
            String.valueOf(Team) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("CHANGETEAM");
              		
		    					if (Id != null) {
		    						buf.append(" {Id " + Id.getUnrealId() + "}");
		    					}
		    				
		    					buf.append(" {Team " + Team + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        