From: Neil Date: Sun, 11 May 2014 20:15:47 +0000 (+0200) Subject: Add export methdo to DoNothing action for testing purposes X-Git-Tag: 0.1~390 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e53f34ee5031f3046fbee2d8f80b3e97bd9c3bbb;p=naja.git Add export methdo to DoNothing action for testing purposes --- 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."