
            /**
            IMPORTANT !!!
       
            DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbinfomessages BY
            THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
       
            IMPORTANT END !!!
            */
            package
            cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages;
	    		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.*;    
                
            
            /**
              
		Aynchronous message. Response of the CHANGETEAM command.
	
                          Corresponding GameBots message is 
                          TEAMCHANGE.
                      
             */
            
            public class
            TeamChanged
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"TEAMCHANGE {Success False} {DesiredTeam 0}";
    
            
            /////// Properties BEGIN
            
        /**
        
			If true team change was succesfull (it won't be succesfull if
			we are changing to a team we already are in).
		 */
        protected
         boolean Success = 
        	false;
        
        
        /**
        
			If true team change was succesfull (it won't be succesfull if
			we are changing to a team we already are in).
		 */
        public
        boolean isSuccess() {
            return
         Success;
        }
        

        
        /**
        
			This is the team we wanted to change to (0 for red,1 for
			blue, etc..).
		 */
        protected
         int DesiredTeam = 
        	0;
        
        
        /**
        
			This is the team we wanted to change to (0 for red,1 for
			blue, etc..).
		 */
        public
        int getDesiredTeam() {
            return
         DesiredTeam;
        }
        

        
            /////// 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 TeamChanged(TeamChanged original) {
                
                     this.Success=original.Success;
                
                     this.DesiredTeam=original.DesiredTeam;
                
             }   
             
             
                 /**
                  * Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
                  */
	             public TeamChanged() {
	             }
             
                
                 
            public String toString() {
                return
                
                		super.toString() + " | " +
                		
				               "Success = " + 
				               String.valueOf(Success) + " | " +
				            
				               "DesiredTeam = " + 
				               String.valueOf(DesiredTeam) + " | " +
				             "";
                	 
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Success</b> : " + 
            String.valueOf(Success) + 
            " <br/> " +
             
            "<b>DesiredTeam</b> : " + 
            String.valueOf(DesiredTeam) + 
            " <br/> " +
             "";
             }            
             
             
             
             }
                         
        