Add reset method
authorNeil <neil@dip.sun.ac.za>
Wed, 17 Apr 2013 11:29:59 +0000 (13:29 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 17 Apr 2013 11:29:59 +0000 (13:29 +0200)
erdslangetjie/level.py

index cbec02c35d899a7ceb18123891bd177b1add1b16..4458245a4156c7ab63f866fcc6ba916d2fcc3769 100644 (file)
@@ -146,3 +146,6 @@ class LevelList(object):
     def advance_to_next_level(self):
         self._cur_level += 1
         return self.get_current_level()
+
+    def reset(self):
+        self._cur_level = 0