public BattleEngine(IFightEngine engine, IWarriorFactory warriorFactory, ILogService logger, int redArmySize, int blueArmySize)
        {
            this.fightEngine = engine;
            this.factory = warriorFactory;
            this.logger = logger;
            this.redArmySize = redArmySize;
            this.blueArmySize = blueArmySize;

            this.fightEngine.FightEvent += this.HandleFightEvent;
        }
Beispiel #2
0
        public BattleEngine(IFightEngine engine, IWarriorFactory warriorFactory, ILogService logger, int redArmySize, int blueArmySize)
        {
            this.fightEngine  = engine;
            this.factory      = warriorFactory;
            this.logger       = logger;
            this.redArmySize  = redArmySize;
            this.blueArmySize = blueArmySize;

            this.fightEngine.FightEvent += this.HandleFightEvent;
        }