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.ut2004.t3dgenerator.elements;
7   
8   import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.UnrealBean;
9   import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.Vector3D;
10  import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.Rotation3D;
11  import cz.cuni.amis.pogamut.unreal.t3dgenerator.elements.AbstractUnrealBean;
12  import cz.cuni.amis.pogamut.ut2004.t3dgenerator.datatypes.ESurfaceType;
13  
14  /**
15   * A predecessor for all actor objects
16   * @author Martin Cerny
17   * @see <a href="http://wiki.beyondunreal.com/UE2:Actor_%28UT2003%29">http://wiki.beyondunreal.com/UE2:Actor_%28UT2003%29</a>
18   */
19  @UnrealBean("Actor")
20  public class AbstractActor extends AbstractUnrealBean {
21  
22      private Vector3D location = null;
23      private Rotation3D rotation = null;
24      private String tag = null;
25      
26      private Boolean blockActors;
27      private Boolean blockPlayers;
28      private Boolean collideActors;
29      private Boolean collideWorld;
30      private Boolean pathColliding;
31      private ESurfaceType surfaceType;
32              
33  
34      public AbstractActor(String className){
35          this(className, null);
36      }
37  
38  
39      public AbstractActor(String className,  String name) {
40          super(className,name);
41          tag = className;
42      }
43  
44      public Vector3D getLocation() {
45          return location;
46      }
47  
48      public void setLocation(Vector3D location) {
49          this.location = location;
50      }
51  
52      public Rotation3D getRotation() {
53          return rotation;
54      }
55  
56      public void setRotation(Rotation3D rotation) {
57          this.rotation = rotation;
58      }
59  
60      public String getTag() {
61          return tag;
62      }
63  
64      public void setTag(String tag) {
65          this.tag = tag;
66      }
67  
68      public Boolean getBlockActors() {
69          return blockActors;
70      }
71  
72      public void setBlockActors(Boolean blockActors) {
73          this.blockActors = blockActors;
74      }
75  
76      public Boolean getBlockPlayers() {
77          return blockPlayers;
78      }
79  
80      public void setBlockPlayers(Boolean blockPlayers) {
81          this.blockPlayers = blockPlayers;
82      }
83  
84      public Boolean getCollideActors() {
85          return collideActors;
86      }
87  
88      public void setCollideActors(Boolean collideActors) {
89          this.collideActors = collideActors;
90      }
91  
92      public Boolean getCollideWorld() {
93          return collideWorld;
94      }
95  
96      public void setCollideWorld(Boolean collideWorld) {
97          this.collideWorld = collideWorld;
98      }
99  
100     public Boolean getPathColliding() {
101         return pathColliding;
102     }
103 
104     public void setPathColliding(Boolean pathColliding) {
105         this.pathColliding = pathColliding;
106     }
107 
108     public ESurfaceType getSurfaceType() {
109         return surfaceType;
110     }
111 
112     public void setSurfaceType(ESurfaceType surfaceType) {
113         this.surfaceType = surfaceType;
114     }
115 
116 
117 
118 
119 
120 }