Start of location actions.
[naja.git] / naja / actions.py
1 from naja.gameboard import LocationAction
2
3
4 class DoNothing(LocationAction):
5     TEXT = "No effect."
6
7     def perform_action(self, player, board):
8         pass
9
10
11 class LoseHeathOrMSB(LocationAction):
12     TEXT = "Lose health. If MSB is set, it will be cleared instead."
13
14     def perform_action(self, player, board):
15         if not self.check_and_clear_MSB(player):
16             board.lose_health()