View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   
6   package cz.cuni.amis.pogamut.udk.t3dgenerator.elements.map;
7   
8   import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.UnrealComponent;
9   import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.UnrealProperty;
10  import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.Vector3D;
11  import cz.cuni.amis.pogamut.udk.t3dgenerator.elements.AbstractActor;
12  
13  /**
14   * A predecessor for all navigation point-based actors
15   * @author Martin Cerny
16   * @see <a href="http://wiki.beyondunreal.com/UE3:NavigationPoint_%28UDK%29">http://wiki.beyondunreal.com/UE3:NavigationPoint_%28UDK%29</a>
17   */
18  public abstract class NavigationPoint extends AbstractActor{
19      
20      @UnrealProperty
21      @UnrealComponent
22      private CollisionCylinderComponent cylinderComponent;
23  
24      @UnrealProperty
25      @UnrealComponent
26      private PathRenderingComponent pathRenderer;
27  
28      public NavigationPoint(String className,  Vector3D location,  CollisionCylinderComponent cylinderComponent) {
29          super(className);
30          this.cylinderComponent = cylinderComponent;
31          this.pathRenderer = new PathRenderingComponent("Engine.Default__" + className +":PathRenderer");
32          setLocation(location);
33      }
34  
35      public CollisionCylinderComponent getCylinderComponent() {
36          return cylinderComponent;
37      }
38  
39      public void setCylinderComponent(CollisionCylinderComponent cylinderComponent) {
40          this.cylinderComponent = cylinderComponent;
41      }
42  
43      public PathRenderingComponent getPathRenderer() {
44          return pathRenderer;
45      }
46  
47  
48      
49  }