Browse Source

moved sendcurrentposition to base class

Joe Shochet 21 years ago
parent
commit
01232c9e6f

+ 0 - 4
direct/src/distributed/DistributedSmoothNode.py

@@ -312,10 +312,6 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
         self.forceToTruePosition()
         self.forceToTruePosition()
         self.sendCurrentPosition()
         self.sendCurrentPosition()
 
 
-    def sendCurrentPosition(self):
-        self.cnode.initialize(self, self.dclass, self.doId)
-        self.cnode.sendEverything()
-
     ### Monitor clock sync ###
     ### Monitor clock sync ###
 
 
     def d_suggestResync(self, avId, timestampA, timestampB,
     def d_suggestResync(self, avId, timestampA, timestampB,

+ 4 - 0
direct/src/distributed/DistributedSmoothNodeBase.py

@@ -84,3 +84,7 @@ class DistributedSmoothNodeBase:
         taskName = self.taskName("sendPosHpr")
         taskName = self.taskName("sendPosHpr")
         task.delayTime = self.__broadcastPeriod
         task.delayTime = self.__broadcastPeriod
         return Task.again
         return Task.again
+
+    def sendCurrentPosition(self):
+        self.cnode.initialize(self, self.dclass, self.doId)
+        self.cnode.sendEverything()