Пример #1
0
        public void StartWith(Chief chief)
        {
            if (_owner != null)
            {
                throw new Exception("Already started");
            }

            _owner = chief;
        }
Пример #2
0
        public GameTimer(Chief chief)
        {
            _chief = chief;

            _timer          = new Timer(1000);    //miliseconds
            _timer.Elapsed += Tick;

            _timeLeft = new TimeLeft
            {
                BattleTimeLeft = 900,              //seconds
                TurnTimeLeft   = 120               //seconds
            };
        }
Пример #3
0
        public Io(Chief chief)
        {
            _chief = chief;

            Options = new Options(chief);
        }
Пример #4
0
 public Emulated(Chief chief)
 {
     _chiefIndex = chief.Index;
     _engine     = chief.GetEngine().Clone();
     _engine.Emitter.Subscribe(this);
 }
Пример #5
0
 private void ChangeOwner()
 {
     _owner = _owner.GetOpponent();
     ++_number;
 }
Пример #6
0
 public void StartWith(Chief chief, int number)
 {
     _number = number;
     StartWith(chief);
 }
Пример #7
0
 public CardFactory(Chief chief)
 {
     _chief = chief;
 }
Пример #8
0
 public CardsContainer(Chief chief)
 {
     this._chief = chief;
     Factory     = new CardFactory(chief);
 }