Ejemplo n.º 1
0
 private BattleCharacter(ILog log, string name, ICharStats stats, BattleSide loyalty, BattleDeck deck)
 {
     _log     = log;
     Name     = name;
     Hand     = new BattleHand(() => CurrentActionPoints, () => CurrentEnergy);
     _stats   = new BattleCharacterStats(stats);
     _effects = new BattleCharacterStatusEffects();
     Loyalty  = loyalty;
     Deck     = deck;
     DrawCards(_stats[BattleStat.StartingCards]);
 }
Ejemplo n.º 2
0
 public static BattleCharacter Create(BattleSide side, CharacterSheet charSheet)
 {
     return(new BattleCharacter(BattleLog.Instance, charSheet.Name, charSheet.Stats, side, BattleDeck.Create(charSheet.Deck.Cards)));
 }