Пример #1
0
        public void Tick(object sender, EventArgs e)
        {
            _timeLeft.TurnTimeLeft--;
            _timeLeft.BattleTimeLeft--;

            if (_timeLeft.BattleTimeLeft == 0)
            {
                _timer.Stop();
                _engine.Actions.Delay(new Final(_chief.GetOpponent(), Final.Trigger.GlobalTimerExpired));                 //or launch?
                return;
            }
            if (_timeLeft.TurnTimeLeft == 0)
            {
                _chief.Io.EndTurn();
            }
        }
Пример #2
0
 private void ChangeOwner()
 {
     _owner = _owner.GetOpponent();
     ++_number;
 }