diff demos/shooter/scripts/ships/shipbase.py @ 461:f87f686b5b59

Projectiles from enemy ships no longer destroy other enemies.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 12 Apr 2010 12:21:27 +0000
parents 5e1d6e40d19d
children c4f745a566d6
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/shipbase.py	Fri Apr 09 21:42:28 2010 +0000
+++ b/demos/shooter/scripts/ships/shipbase.py	Mon Apr 12 12:21:27 2010 +0000
@@ -40,6 +40,8 @@
 		
 		#1 = on, 0 = invisible (off)
 		self._flashstate = 1
+		
+		self._isplayer = False
 	
 	def _setWeapon(self, weapon):
 		self._weapon = weapon
@@ -85,6 +87,10 @@
 					self._flashnumber -= 1
 	
 		super(Ship, self).update()
+		
+	def _isPlayer(self):
+		return self._isplayer
 	
+	isplayer = property(_isPlayer)
 	weapon = property(_getWeapon, _setWeapon)
 	
\ No newline at end of file