
            /**
            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.*;    
                
            
            /**
              
		Asynchronous message. Bot changed weapon. Possibly as a result
		of a command sent by you. Here we will get the new weapon - the weapon the
        bot has changed to.
	
                          Corresponding GameBots message is 
                          CWP.
                      
             */
            
            public class
            ChangedWeapon
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"CWP {Id text} {PrimaryAmmo 0} {SecondaryAmmo 0} {Type text}";
    
            
            /////// Properties BEGIN
            
        /**
        
			Unique Id of new weapon, based on the inventory weapon's
			name (this is different from the Id of the weapon that can
			be picked up in the map).
		 */
        protected
         String Id = 
        	null;
        
        
        /**
        
			Unique Id of new weapon, based on the inventory weapon's
			name (this is different from the Id of the weapon that can
			be picked up in the map).
		 */
        public
        String getId() {
            return
         Id;
        }
        

        
        /**
        
			Holding current primary ammo of the new weapon.
		 */
        protected
         int PrimaryAmmo = 
        	0;
        
        
        /**
        
			Holding current primary ammo of the new weapon.
		 */
        public
        int getPrimaryAmmo() {
            return
         PrimaryAmmo;
        }
        

        
        /**
        
			Holding current secondary ammo of the new weapon.
		 */
        protected
         int SecondaryAmmo = 
        	0;
        
        
        /**
        
			Holding current secondary ammo of the new weapon.
		 */
        public
        int getSecondaryAmmo() {
            return
         SecondaryAmmo;
        }
        

        
        /**
        
			A string representing the type of the weapon.
		 */
        protected
         String Type = 
        	null;
        
        
        /**
        
			A string representing the type of the weapon.
		 */
        public
        String getType() {
            return
         Type;
        }
        

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