Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added engine parameter to grease_fife.mode.Mode.

  • Loading branch information...
commit 4e04bf076e459cc0f182a5107ae76ecd52dd6f17 1 parent 7ed81d9
Karsten Bock authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 grease/grease_fife/mode.py
7 grease/grease_fife/mode.py
View
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.