
            /**
            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.*;    
    import java.awt.Color;    
                
            
            /**
              
		Shows for specified amount of time or removes a text from players HUD.
	
                          Corresponding GameBots command is 
                          SHTXT.
                      
             */
            
            public class
            ShowText extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command ShowText.
              
		Shows for specified amount of time or removes a text from players HUD.
	Corresponding GameBots message for this command is 
              SHTXT.
                  @param Player Name of the player on who's HUD should be the text shown.
                  @param Text The text that should be shown.
                  @param TextColor The color of text.
                  @param Time Number of seconds for which should be the text shown. The default is until manual removal.
                  @param Show False if the message should be removed, true if it should be shown.
              */
             public ShowText(
                String Player,  String Text,  Color TextColor,  double Time,  boolean Show) {
                    
                    this.Player = Player;
                
                    this.Text = Text;
                
                    this.TextColor = TextColor;
                
                    this.Time = Time;
                
                    this.Show = Show;
                
                }
               
            
            		/**
		             Creates new instance of command ShowText.
		             
		Shows for specified amount of time or removes a text from players HUD.
	Corresponding GameBots message for this command is 
		             SHTXT.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  ShowText() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        Name of the player on who's HUD should be the text shown. */
        protected
         String Player = 
        	null;
        
        
        /**
        Name of the player on who's HUD should be the text shown. */
        public
        String getPlayer() {
            return
         Player;
        }
        

        
            /**         
        Name of the player on who's HUD should be the text shown. */
        public ShowText setPlayer(String Player) {
            this.Player = Player;
            return this;
            }
       
        /**
        The text that should be shown. */
        protected
         String Text = 
        	null;
        
        
        /**
        The text that should be shown. */
        public
        String getText() {
            return
         Text;
        }
        

        
            /**         
        The text that should be shown. */
        public ShowText setText(String Text) {
            this.Text = Text;
            return this;
            }
       
        /**
        The color of text. */
        protected
         Color TextColor = 
        	null;
        
        
        /**
        The color of text. */
        public
        Color getTextColor() {
            return
         TextColor;
        }
        

        
            /**         
        The color of text. */
        public ShowText setTextColor(Color TextColor) {
            this.TextColor = TextColor;
            return this;
            }
       
        /**
        Number of seconds for which should be the text shown. The default is until manual removal. */
        protected
         double Time = 
        	0;
        
        
        /**
        Number of seconds for which should be the text shown. The default is until manual removal. */
        public
        double getTime() {
            return
         Time;
        }
        

        
            /**         
        Number of seconds for which should be the text shown. The default is until manual removal. */
        public ShowText setTime(double Time) {
            this.Time = Time;
            return this;
            }
       
        /**
        False if the message should be removed, true if it should be shown. */
        protected
         boolean Show = 
        	false;
        
        
        /**
        False if the message should be removed, true if it should be shown. */
        public
        boolean isShow() {
            return
         Show;
        }
        

        
            /**         
        False if the message should be removed, true if it should be shown. */
        public ShowText setShow(boolean Show) {
            this.Show = Show;
            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 ShowText(ShowText original) {
                
                     this.Player=original.Player;
                
                     this.Text=original.Text;
                
                     this.TextColor=original.TextColor;
                
                     this.Time=original.Time;
                
                     this.Show=original.Show;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Player</b> : " + 
            String.valueOf(Player) + 
            " <br/> " +
             
            "<b>Text</b> : " + 
            String.valueOf(Text) + 
            " <br/> " +
             
            "<b>TextColor</b> : " + 
            String.valueOf(TextColor) + 
            " <br/> " +
             
            "<b>Time</b> : " + 
            String.valueOf(Time) + 
            " <br/> " +
             
            "<b>Show</b> : " + 
            String.valueOf(Show) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SHTXT");
              		
		    					if (Player != null) {
		    						buf.append(" {Player " + Player + "}");
		    					}
		    				
		    					if (Text != null) {
		    						buf.append(" {Text " + Text + "}");
		    					}
		    				
                                if (TextColor != null) {
                                    buf.append(" {TextColor " + 
                                        TextColor.getRed() + "," + 
                                        TextColor.getGreen() + "," + 
                                        TextColor.getBlue() + "," +
                                        TextColor.getAlpha() + "}");
                                }
                            
		    					buf.append(" {Time " + Time + "}");
		    				
		    					buf.append(" {Show " + Show + "}");
		    				            
            		return buf.toString();
            }
             
             }
                         
        