Пример #1
0
    //I think both different levels are different cards for easy making

    public MogiCard Clone()
    {
        MogiCard card = new MogiCard();

        card.attackPoint = this.attackPoint;
        card.level       = this.level;
        card.hp          = this.hp;
        card.cardInfo    = this.cardInfo;
        card.manaCost    = this.manaCost;
        card.features    = this.features;

        return(card);
    }
Пример #2
0
    public override void Init(Card info, CardDisplay display, CardMotion motion, bool isController)
    {
        MogiCard cardInfo = (MogiCard)info;

        attackPoint       = cardInfo.attackPoint;
        HPRemain          = maxHP = cardInfo.hp;
        this.display      = display;
        this.motion       = motion;
        this.info         = info;
        this.isController = isController;
        base.Init(info, display, motion, isController);
        AddInitEvent();
    }