
            /**
            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.*;    
                
            
            /**
              
		Synchronous message. Contains the info about player score.
	
                          Corresponding GameBots message is 
                          PLS.
                      
             */
            
            public class
            PlayerScore
                    extends GBEvent
                
	            	implements IWorldEvent
                        
            {
            
            
            
    	/** Example how the message looks like - used during parser tests. */
    	public static final String PROTOTYPE = 
    		"PLS {Id unreal_id} {Score 0} {Deaths 0}";
    
            
            /////// Properties BEGIN
            
        /**
        
			When was the last time we've received info about this
			object.
		 */
        protected
         double lastSeenTime = 
        	0;
        
        
        /**
        
			When was the last time we've received info about this
			object.
		 */
        public
        double getLastSeenTime() {
            return
         lastSeenTime;
        }
        

        
        /**
        Unique Id of the player. */
        protected
         UnrealId Id = 
        	null;
        
        
        /**
        Unique Id of the player. */
        public
        UnrealId getId() {
            return
         Id;
        }
        

        
        /**
        
			Number of player frags (how many times the player killed
			other players) or number of victory points (player frags +
			some special measurement that can differ from game type to
			game type).
		 */
        protected
         int Score = 
        	0;
        
        
        /**
        
			Number of player frags (how many times the player killed
			other players) or number of victory points (player frags +
			some special measurement that can differ from game type to
			game type).
		 */
        public
        int getScore() {
            return
         Score;
        }
        

        
        /**
        Number of players deaths. */
        protected
         int Deaths = 
        	0;
        
        
        /**
        Number of players deaths. */
        public
        int getDeaths() {
            return
         Deaths;
        }
        

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