Archived
add effects to card
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from typing import List
|
||||
from model import Serializable, CardRole, CardType, CardFaction
|
||||
from model.card_validator import Effect
|
||||
|
||||
|
||||
class Card(Serializable):
|
||||
@@ -11,6 +13,7 @@ class Card(Serializable):
|
||||
role: CardRole
|
||||
card_type: CardType
|
||||
faction: CardFaction
|
||||
effects: List[Effect]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -19,6 +22,7 @@ class Card(Serializable):
|
||||
cost: int | None,
|
||||
card_type: CardType,
|
||||
faction: CardFaction,
|
||||
effects: List[Effect],
|
||||
):
|
||||
super().__init__()
|
||||
self.sprite = sprite
|
||||
@@ -26,6 +30,7 @@ class Card(Serializable):
|
||||
self.cost = cost
|
||||
self.card_type = card_type
|
||||
self.faction = faction
|
||||
self.effects = effects
|
||||
|
||||
|
||||
class CardChampion(Card):
|
||||
|
||||
Reference in New Issue
Block a user