Esempio n. 1
0
        public IPlayer <TCommand> Regist(ICommandProvidable <TCommand> provider)
        {
            var player = new Player <TCommand>(_Players.Count + 1, provider, _History.GetEnumerable());

            _Players.Add(player);
            return(player);
        }
Esempio n. 2
0
 public Player(int id, ICommandProvidable <T> providable, IEnumerable <Step <Driver <T> .Record> > records)
 {
     Id         = id;
     Providable = providable;
     _Steps     = new Queue <Step <Driver <T> .Record> >(records);
 }