예제 #1
0
 public void Initialize()
 {
     AttackEvent.Subscribe(this, 0, Attack);
     DamageEvent.Subscribe(this, 0, Damage);
     DeathEvent.Subscribe(this, 0, Death);
     PlayEvent.Subscribe(this, 0, Play);
     TurnEvent.Subscribe(this, 0, NewTurn);
 }
예제 #2
0
        public override Card Instantiate()
        {
            var card = new FuriousWolf();

            card.Initialize();
            AttackEvent.Subscribe(card, 50, OnAttack);
            return(card);
        }
예제 #3
0
        public virtual Card Instantiate()
        {
            var card = new Card(name, description, MANA, ATTACK, HEALTH);

            AttackEvent.Subscribe(card, 0, Attack);
            DamageEvent.Subscribe(card, 0, Damage);
            DeathEvent.Subscribe(card, 0, Death);
            PlayEvent.Subscribe(card, 0, Play);
            TurnEvent.Subscribe(card, 0, NewTurn);
            return(card);
        }
예제 #4
0
파일: Player.cs 프로젝트: XBagon/TextStone
        public Player(string name, Card[] deck)
        {
            this.name = name;
            this.deck = new Deck(deck, this);
            hand      = new Hand(this);
            field     = new Field(this);
            grave     = new Grave(this);

            DrawEvent.Subscribe(this, 0, Draw);
            PlayCardEvent.Subscribe(this, 0, Play);
            AttackOrderEvent.Subscribe(this, 0, AttackOrder);
            AttackEvent.Subscribe(this, 0, Attack);
            DamageEvent.Subscribe(this, 0, Damage);
            DeathEvent.Subscribe(this, 0, Death);
        }