Ejemplo n.º 1
0
        public card(card cloned_card)
        {
            this.local_id = cloned_card.local_id;
            this.card_uid = cloned_card.card_uid;
            this.name = cloned_card.name;
            this.card_type = cloned_card.card_type;

            this.max_health = cloned_card.max_health;
            this.armor = cloned_card.armor;
            this.durability = cloned_card.durability;
            this.damage = cloned_card.get_damage();
            this.atk = cloned_card.atk;
            this.temp_atk = cloned_card.temp_atk;
            this.mana_cost = cloned_card.mana_cost;

            this.base_health = cloned_card.base_health;
            this.base_atk = cloned_card.base_atk;

            this.family = cloned_card.family;

            this.zone_name = cloned_card.zone_name;
            this.prev_zone_name = cloned_card.prev_zone_name;
            this.zone_position = cloned_card.zone_position;

            this.tags = cloned_card.tags;
        }
Ejemplo n.º 2
0
 public void add_card(string id, card added_card)
 {
     if (!this.cards.ContainsKey(id))
     {
         this.cards.Add(id, added_card);
     }
 }