Beispiel #1
0
        public override ICard InstantiateModel(Deck deck, BoardState board, PlayerBoardState player)
        {
            var toReturn = new Card_User_Defined(deck, this, this);

            toReturn.player = player;
            toReturn.board  = board;
            return(toReturn);
        }
Beispiel #2
0
        private GameEngine.Card_User_Defined makeCard(string name, string rarity, int attack, int health, int cost)
        {
            var card = new GameEngine.Card_User_Defined();

            card.setRarity(rarity);
            card.setName(name);
            card.setAttack(attack);
            card.setHealth(health);
            card.setCost(cost);
            return(card);
        }
Beispiel #3
0
        public Model()
        {
            cardsToDisplay = new List <CardStats>();
            GameEngine.ICard card = new GameEngine.Card_User_Defined();

            card.setName("DR. Boom");
            card.setRarity("epic");
            card.setAttack(7);
            card.setHealth(6);
            card.setCost(2);
            cardsToDisplay.Add(new CardStats(card));

            card = new GameEngine.Card_User_Defined();
            card.setRarity("common");
            card.setName("Wisp");
            card.setAttack(1);
            card.setHealth(1);
            card.setCost(1);
            cardsToDisplay.Add(new CardStats(card));

            card = new GameEngine.Card_User_Defined();
            card.setRarity("common");
            card.setName("IronClaw Bear");
            card.setAttack(1);
            card.setHealth(3);
            card.setCost(3);
            //card.SetHasTaunt(true);

            cardsToDisplay.Add(new CardStats(card));

            card = new GameEngine.Card_User_Defined();
            card.setRarity("common");
            card.setName("Ivory Knight");
            card.setAttack(2);
            card.setHealth(6);
            card.setCost(2);

            cardsToDisplay.Add(new CardStats(card));

            card = new GameEngine.Card_User_Defined();
            card.setRarity("rare");
            card.setName("Iron Golem");
            card.setAttack(3);
            card.setHealth(2);
            card.setCost(1);

            cardsToDisplay.Add(new CardStats(card));

            cardsToDisplay.Add(new CardStats(makeCard("Bloodfen raptor", "common", 1, 4, 1)));
            cardsToDisplay.Add(new CardStats(makeCard("Edwin VanCleef", "epic", 2, 4, 2)));
            cardsToDisplay.Add(new CardStats(makeCard("Piloted shredder", "common", 3, 2, 3)));
        }