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