From e53f34ee5031f3046fbee2d8f80b3e97bd9c3bbb Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 11 May 2014 22:15:47 +0200 Subject: [PATCH] Add export methdo to DoNothing action for testing purposes --- naja/actions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/naja/actions.py b/naja/actions.py index 5599bd7..9e3e5c3 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -25,6 +25,9 @@ class LocationAction(object): else: return False + def export(self): + raise NotImplementedError("TODO") + class DoNothing(LocationAction): TEXT = "No effect." @@ -32,6 +35,10 @@ 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): TEXT = "Lose health. If MSB is set, it will be cleared instead." -- 2.34.1