コード例 #1
0
        private ICombatStatus generateCombatStatus(List <IEffect> effectsList, int healthDecrease)
        {
            List <ICharacterDisplay> characterDisplays = new List <ICharacterDisplay>();

            characterDisplays.Add(new DummyCharacterDisplay("Scott Pilgrim", 30 - healthDecrease, 30, 2, 2, new List <IStatusDisplay>(), 1, 1));
            characterDisplays.Add(new DummyCharacterDisplay("Ada Lovelace", 35 - healthDecrease, 35, 3, 3, new List <IStatusDisplay>(), 2, 3));
            List <ICharacterDisplay> npcDisplays = new List <ICharacterDisplay>();

            npcDisplays.Add(new DummyCharacterDisplay("Goblin", 30 - healthDecrease, 30, 2, 2, new List <IStatusDisplay>(), 3, 4));
            npcDisplays.Add(new DummyCharacterDisplay("Boss Goblin", 50 - healthDecrease, 50, 2, 2, new List <IStatusDisplay>(), 4, 2));
            npcDisplays.Add(new DummyCharacterDisplay("Goblin", 0, 30, 2, 2, new List <IStatusDisplay>(), 5, 5));
            ICombatStatus combatStatus = new DummyCombatStatus("Scott Pilgrim", effectsList, characterDisplays, npcDisplays);

            return(combatStatus);
        }
コード例 #2
0
 private ICombatStatus generateCombatStatus(List<IEffect> effectsList, int healthDecrease)
 {
     List<ICharacterDisplay> characterDisplays = new List<ICharacterDisplay>();
     characterDisplays.Add(new DummyCharacterDisplay("Scott Pilgrim", 30 - healthDecrease, 30, 2, 2, new List<IStatusDisplay>(), 1, 1));
     characterDisplays.Add(new DummyCharacterDisplay("Ada Lovelace", 35 - healthDecrease, 35, 3, 3, new List<IStatusDisplay>(), 2, 3));
     List<ICharacterDisplay> npcDisplays = new List<ICharacterDisplay>();
     npcDisplays.Add(new DummyCharacterDisplay("Goblin", 30 - healthDecrease, 30, 2, 2, new List<IStatusDisplay>(), 3, 4));
     npcDisplays.Add(new DummyCharacterDisplay("Boss Goblin", 50 - healthDecrease, 50, 2, 2, new List<IStatusDisplay>(), 4, 2));
     npcDisplays.Add(new DummyCharacterDisplay("Goblin", 0, 30, 2, 2, new List<IStatusDisplay>(), 5, 5));
     ICombatStatus combatStatus = new DummyCombatStatus("Scott Pilgrim", effectsList, characterDisplays, npcDisplays);
     return combatStatus;
 }