diff demos/shooter/scripts/ships/shipbase.py @ 454:bd7e8f708adf

Time is now managed by the Scene object. Enemy projectiles are now a bit slower.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 06 Apr 2010 21:25:10 +0000
parents cf53848fb187
children 302a69c5141d
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/shipbase.py	Tue Apr 06 19:12:41 2010 +0000
+++ b/demos/shooter/scripts/ships/shipbase.py	Tue Apr 06 21:25:10 2010 +0000
@@ -31,19 +31,18 @@
 class Ship(SpaceObject):
 	def __init__(self, scene, name, findInstance=True):
 		super(Ship, self).__init__(scene, name, findInstance)
-
-		self._timedelta = 0
+		
 		self._weapon = None
 	
 	def _setWeapon(self, weapon):
 		self._weapon = weapon
 		
-	def _getWeapon(self, weapon):
+	def _getWeapon(self):
 		return self._weapon
 		
-	def fire(self, curtime, direction):
+	def fire(self, direction):
 		if self._weapon:
-			return self._weapon.fire(curtime, direction)
+			return self._weapon.fire(direction)
 		
 		return None