Explorar o código

Ships now pass smooth node position as default fields and therefore need getters.

Justin Butler %!s(int64=20) %!d(string=hai) anos
pai
achega
20c8cf7502
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      direct/src/distributed/DistributedSmoothNodeAI.py

+ 15 - 0
direct/src/distributed/DistributedSmoothNodeAI.py

@@ -73,3 +73,18 @@ class DistributedSmoothNodeAI(DistributedNodeAI.DistributedNodeAI,
         self.setR(r)
         self.setR(r)
     def setComponentT(self, t):
     def setComponentT(self, t):
         pass
         pass
+
+    def getComponentX(self):
+        return self.getX()
+    def getComponentY(self):
+        return self.getY()
+    def getComponentZ(self):
+        return self.getZ()
+    def getComponentH(self):
+        return self.getH()
+    def getComponentP(self):
+        return self.getP()
+    def getComponentR(self):
+        return self.getR()
+    def getComponentT(self):
+        pass