Permalink
Browse files

Added engine parameter to grease_fife.mode.Mode.

  • Loading branch information...
1 parent 7ed81d9 commit 4e04bf076e459cc0f182a5107ae76ecd52dd6f17 @Beliaar committed Apr 3, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 grease/grease_fife/mode.py
@@ -25,8 +25,13 @@ def _pump(self):
class Mode(BaseMode):
- def __init__(self):
+ def __init__(self, engine):
+ """Constructor
+ Args:
+ engine: A fife.Engine instance
+ """
BaseMode.__init__(self)
+ self.engine = engine
@abc.abstractmethod
def pump(self, dt):

0 comments on commit 4e04bf0

Please sign in to comment.