From 000b2783a9eb2f6e82a8302eaa04c09d300f37c6 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Mon, 1 Jan 2018 09:35:47 -0600 Subject: [PATCH] Delete card.py --- player/card/card.py | 72 --------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 player/card/card.py diff --git a/player/card/card.py b/player/card/card.py deleted file mode 100644 index 29bf1e8..0000000 --- a/player/card/card.py +++ /dev/null @@ -1,72 +0,0 @@ -from enum import Enum, auto - - -class Card: - class CardType(Enum): - Treasure = auto() - Action = auto() - Reaction = auto() - Attack = auto() - Victory = auto() - Curse = auto() - - prevent_attack = False - - def __init__(self, name, cost, cardtype, value, coin, action, buy, draw, owner): - self.__name = name - self.__cost = cost - self.__coin = coin - self.__type = cardtype - self.__action = action - self.__buy = buy - self.__draw = draw - self.__value = value - self.__owner = owner - - def play(self): - self.__owner.add_actions(self.__action) - self.__owner.add_buys(self.__buy) - self.__owner.add_purchase_power(self.__coin) - self.__owner.draw_cards(self.__draw) - self.effect() - - def effect(self): - # This is here so that 'special' card can override this function so that unique card effects can happen. - pass - - def setup(self): - # This is here so that 'special' card can override this function so that unique card setup effects can happen. - pass - - def get_name(self): - return self.__name - - def get_type(self): - return self.__type - - def get_cost(self): - return self.__cost - - def set_owner(self, owner): - self.__owner = owner - - def get_owner(self): - return self.__owner - - def identify(self): - return self.__name + ", " + str(self.__type) + ", " + str(self.__cost) - - def __get_index_not_self(self): - result = -1 - for c in self._Card__owner.get_hand().get_supply(): - if c != self: - result = self._Card__owner.get_hand().get_player_index() - return result - - def __print_card_list(self, card, message): - print("\nPlayer " + str(self._Card__owner.get_player_index()) + " " + message) - - counter = 0 - for c in card: - print(str(counter) + ": " + c.identify()) - counter += 1 \ No newline at end of file