diff pytouhou/game/orb.py @ 304:f3099ebf4f61

Update attribute names to reflect the actual interface.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 13 Mar 2012 18:38:14 +0100
parents 300661f2ae8a
children c9433188ffdb
line wrap: on
line diff
--- a/pytouhou/game/orb.py
+++ b/pytouhou/game/orb.py
@@ -18,13 +18,13 @@ from pytouhou.vm.anmrunner import ANMRun
 
 
 class Orb(object):
-    __slots__ = ('_sprite', '_anmrunner', 'offset_x', 'offset_y', 'player_state',
+    __slots__ = ('sprite', 'anmrunner', 'offset_x', 'offset_y', 'player_state',
                  'fire')
 
     def __init__(self, anm_wrapper, index, player_state, fire_func):
-        self._sprite = Sprite()
-        self._anmrunner = ANMRunner(anm_wrapper, index, self._sprite)
-        self._anmrunner.run_frame()
+        self.sprite = Sprite()
+        self.anmrunner = ANMRunner(anm_wrapper, index, self.sprite)
+        self.anmrunner.run_frame()
 
         self.offset_x = 0
         self.offset_y = 0
@@ -44,4 +44,5 @@ class Orb(object):
 
 
     def update(self):
-        self._anmrunner.run_frame()
+        self.anmrunner.run_frame()
+