
            /**
            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 hurt another player. Hit them with a
		shot.
	
                          Corresponding GameBots message is 
                          HIT.
                      
             */
            
            public class
            PlayerDamaged
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"HIT {Id unreal_id} {Damage 0} {DamageType text} {WeaponName text} {Flaming False} {DirectDamage False} {BulletHit False} {VehicleHit False}";
    
            
            /////// Properties BEGIN
            
        /**
        Unique Id of the player hit. */
        protected
         UnrealId Id = 
        	null;
        
        
        /**
        Unique Id of the player hit. */
        public
        UnrealId getId() {
            return
         Id;
        }
        

        
        /**
        Amount of damage done. */
        protected
         int Damage = 
        	0;
        
        
        /**
        Amount of damage done. */
        public
        int getDamage() {
            return
         Damage;
        }
        

        
        /**
        
			A string describing what kind of damage.
		 */
        protected
         String DamageType = 
        	null;
        
        
        /**
        
			A string describing what kind of damage.
		 */
        public
        String getDamageType() {
            return
         DamageType;
        }
        

        
        /**
        
			Name of the weapon that caused this damage.
		 */
        protected
         String WeaponName = 
        	null;
        
        
        /**
        
			Name of the weapon that caused this damage.
		 */
        public
        String getWeaponName() {
            return
         WeaponName;
        }
        

        
        /**
        
			If this damage is causing our bot to burn. TODO
		 */
        protected
         boolean Flaming = 
        	false;
        
        
        /**
        
			If this damage is causing our bot to burn. TODO
		 */
        public
        boolean isFlaming() {
            return
         Flaming;
        }
        

        
        /**
        
			If the damage is direct. TODO
		 */
        protected
         boolean DirectDamage = 
        	false;
        
        
        /**
        
			If the damage is direct. TODO
		 */
        public
        boolean isDirectDamage() {
            return
         DirectDamage;
        }
        

        
        /**
        
			If this damage was caused by bullet.
		 */
        protected
         boolean BulletHit = 
        	false;
        
        
        /**
        
			If this damage was caused by bullet.
		 */
        public
        boolean isBulletHit() {
            return
         BulletHit;
        }
        

        
        /**
        
			If this damage was caused by vehicle running over.
		 */
        protected
         boolean VehicleHit = 
        	false;
        
        
        /**
        
			If this damage was caused by vehicle running over.
		 */
        public
        boolean isVehicleHit() {
            return
         VehicleHit;
        }
        

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