X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Factions.py;h=9e3e5c3a4cb0b68c974f9c42321984deab3bc488;hb=e53f34ee5031f3046fbee2d8f80b3e97bd9c3bbb;hp=5599bd73b2d724e6986bc8a58d3ecf7e3ba2da16;hpb=0f1d3b6fefa6f65605be0f76d61d16cd27662f93;p=naja.git 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."