
            /**
            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.*;    
                
            
            /**
              
		Will spawn an actor in the game specified by Type (holds the
		class of the actor). Be carefull with what you spawn and where
		you spawn it. Possible use - for some additional inventory
		spawns.
	
                          Corresponding GameBots command is 
                          SPAWNACTOR.
                      
             */
            
            public class
            SpawnActor extends
        CommandMessage
                        
            {
            
            
            
            /**
              Creates new instance of command SpawnActor.
              
		Will spawn an actor in the game specified by Type (holds the
		class of the actor). Be carefull with what you spawn and where
		you spawn it. Possible use - for some additional inventory
		spawns.
	Corresponding GameBots message for this command is 
              SPAWNACTOR.
                  @param Location 
			Location where the actor will be spawned.
		
                  @param Rotation Initial rotation of the actor.
                  @param Type 
			Holds the desired actor class (e.g.
			xWeapons.FlakCannonPickup).
		
              */
             public SpawnActor(
                Location Location,  Rotation Rotation,  String Type) {
                    
                    this.Location = Location;
                
                    this.Rotation = Rotation;
                
                    this.Type = Type;
                
                }
               
            
            		/**
		             Creates new instance of command SpawnActor.
		             
		Will spawn an actor in the game specified by Type (holds the
		class of the actor). Be carefull with what you spawn and where
		you spawn it. Possible use - for some additional inventory
		spawns.
	Corresponding GameBots message for this command is 
		             SPAWNACTOR.
		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
		             */
            		public  SpawnActor() {
            		}
            	
            
            /////// Properties BEGIN
            
        /**
        
			Location where the actor will be spawned.
		 */
        protected
         Location Location = 
        	null;
        
        
        /**
        
			Location where the actor will be spawned.
		 */
        public
        Location getLocation() {
            return
         Location;
        }
        

        
            /**         
        
			Location where the actor will be spawned.
		 */
        public SpawnActor setLocation(Location Location) {
            this.Location = Location;
            return this;
            }
       
        /**
        Initial rotation of the actor. */
        protected
         Rotation Rotation = 
        	null;
        
        
        /**
        Initial rotation of the actor. */
        public
        Rotation getRotation() {
            return
         Rotation;
        }
        

        
            /**         
        Initial rotation of the actor. */
        public SpawnActor setRotation(Rotation Rotation) {
            this.Rotation = Rotation;
            return this;
            }
       
        /**
        
			Holds the desired actor class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        protected
         String Type = 
        	null;
        
        
        /**
        
			Holds the desired actor class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        public
        String getType() {
            return
         Type;
        }
        

        
            /**         
        
			Holds the desired actor class (e.g.
			xWeapons.FlakCannonPickup).
		 */
        public SpawnActor setType(String Type) {
            this.Type = Type;
            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 SpawnActor(SpawnActor original) {
                
                     this.Location=original.Location;
                
                     this.Rotation=original.Rotation;
                
                     this.Type=original.Type;
                
             }   
             
             
                
                 
            public String toString() {
                return
                
                    	super.toString();
                     
             }
             
             public String toHtmlString() {
                return super.toString() +
             
            "<b>Location</b> : " + 
            String.valueOf(Location) + 
            " <br/> " +
             
            "<b>Rotation</b> : " + 
            String.valueOf(Rotation) + 
            " <br/> " +
             
            "<b>Type</b> : " + 
            String.valueOf(Type) + 
            " <br/> " +
             "";
             }            
             
             
             
                 public String toMessage() {
              		StringBuffer buf = new StringBuffer();
              		buf.append("SPAWNACTOR");
              		
                                if (Location != null) {
                                    buf.append(" {Location " + 
                                        Location.getX() + "," + 
                                        Location.getY() + "," + 
                                        Location.getZ() + "}");
                                }
                            
                                if (Rotation != null) {
                                    buf.append(" {Rotation Y" + 
                                        Rotation.getYaw() + ",R" + 
                                        Rotation.getRoll() + ",P" + 
                                        Rotation.getPitch() + "}");
                                }
                            
		    					if (Type != null) {
		    						buf.append(" {Type " + Type + "}");
		    					}
		    				            
            		return buf.toString();
            }
             
             }
                         
        