diff pytouhou/game/item.py @ 306:52d791bb7c32

Rename a few attributes/methods to make a little more sense.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 13 Mar 2012 19:18:14 +0100
parents f3099ebf4f61
children e935ed8dc5e6
line wrap: on
line diff
--- a/pytouhou/game/item.py
+++ b/pytouhou/game/item.py
@@ -21,10 +21,10 @@ from pytouhou.utils.interpolator import 
 class Item(object):
     def __init__(self, start_pos, _type, item_type, game, angle=pi/2, player=None, end_pos=None):
         self._game = game
+        self._item_type = item_type
         self.sprite = item_type.sprite
         self.removed = False
         self._type = _type
-        self._item_type = item_type
 
         self.frame = 0
         self.x, self.y = start_pos