예제 #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
파일: Io.cs 프로젝트: tgadfly/Midnight
        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);
 }