Пример #1
0
        public void Setup()
        {
            basicEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer);

            data = new CardData {
                Name = "TestCard", DataId = 1
            };
            CardDatabase.GetInstance().AddItem(data);
            databaseEntity = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1);
        }
Пример #2
0
        public void Setup()
        {
            var data = new CardData {
                Name = "Test", DataId = 1
            };

            CardDatabase.GetInstance().AddItem(data);

            testEntity    = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1);
            anotherEntity = testEntity.Clone();
            anotherEntity.AddModule(new ControlModule(anotherEntity, TestDefaults.Enemy));
        }
Пример #3
0
        public void Setup()
        {
            var data = new CardData()
            {
                Name = "Test", DataId = 1
            };

            data.Stats.Add(new StatInfo("Health", 1));
            data.Keywords.Add(new KeywordInfo("Charge", 1));
            CardDatabase.GetInstance().AddItem(data);

            testEntity   = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1);
            clonedEntity = testEntity.Clone();
            testCard     = testEntity.Clone().AsActor().AsCard();

            notEqualEntityDifStats = EntityFactory.Create(typeof(Card), TestDefaults.MainPlayer, 1);
            notEqualEntityDifStats.AsActor().AsCard().ChangeStat("Health", new Modifier(1));
            notEqualEntityDifKeywords = testEntity.Clone();
            notEqualEntityDifKeywords
            .AsActor().AsCard().AddKeyword(new Keyword(new KeywordInfo("kwd", 2)));
        }