+
+
+class SetBits(LocationAction):
+ TEXT = "Set bits specified by this location."
+
+ def perform_action(self, board, location):
+ board.player.bits.set_bits(location.bitwise_operand)
+
+
+class ToggleBits(LocationAction):
+ TEXT = "Toggle bits specified by this location."
+
+ def perform_action(self, board, location):
+ board.player.bits.toggle_bits(location.bitwise_operand)