diff demos/shooter/scripts/ships/player.py @ 494:e241d7553496

Fixing the epydoc markup. Did some more commenting.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 10 May 2010 15:54:21 +0000
parents 16ceb3228324
children 291ba2946c73
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/player.py	Fri May 07 21:46:25 2010 +0000
+++ b/demos/shooter/scripts/ships/player.py	Mon May 10 15:54:21 2010 +0000
@@ -89,9 +89,13 @@
 			self._scene.gameOver()
 		
 	def setInvulnerable(self, milliseconds):
-		#50 is defined in the players "flash" animation file
-		#2 is the number of frames in the animation
-		#TODO: read these values somehow from the animation
+		"""
+		50 is defined in the players "flash" animation file
+		2 is the number of frames in the animation		
+		
+		@todo: read these values somehow from the animation
+		
+		"""
 		number = int((milliseconds / 50) / 2)
 		
 		if number <= 0:
@@ -166,7 +170,7 @@
 		super(Player, self).update()
 		
 		#set up the players camera bounds
-		#TODO: grab screen resolution from somewhere
+		#@todo: grab screen resolution from somewhere
 		topleft = self._scene.camera.toMapCoordinates(fife.ScreenPoint(0,0))
 		bottomright = self._scene.camera.toMapCoordinates(fife.ScreenPoint(1024,768))