Heath Robinson, I presume
[naja.git] / naja / actions.py
index 5599bd73b2d724e6986bc8a58d3ecf7e3ba2da16..5a3e6e4b271787b5f166de37197c0d9fcad5606f 100644 (file)
@@ -25,6 +25,9 @@ class LocationAction(object):
         else:
             return False
 
+    def export(self):
+        raise NotImplementedError("TODO")
+
 
 class DoNothing(LocationAction):
     TEXT = "No effect."
@@ -32,8 +35,12 @@ class DoNothing(LocationAction):
     def perform_action(self, board, location):
         pass
 
+    def export(self):
+        return {'required_bits': list(self.required_bits),
+                'action_class': 'DoNothing'}
+
 
-class LoseHeathOrMSB(LocationAction):
+class LoseHealthOrMSB(LocationAction):
     TEXT = "Lose health. If MSB is set, it will be cleared instead."
 
     def perform_action(self, board, location):