Пример #1
0
        public Player(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data)
        {
            this.Id   = data.GetIdentityValue(GameDataValueKeys.PlayerId);
            this.Name = data.GetStringValue(GameDataValueKeys.PlayerName);

            /*this.BrickCount = data.GetIntegerValue(GameDataValueKeys.PlayerBrick);
             * this.GrainCount = data.GetIntegerValue(GameDataValueKeys.PlayerGrain);
             * this.LumberCount = data.GetIntegerValue(GameDataValueKeys.PlayerLumber);
             * this.OreCount = data.GetIntegerValue(GameDataValueKeys.PlayerOre);
             * this.WoolCount = data.GetIntegerValue(GameDataValueKeys.PlayerWool);*/
        }
Пример #2
0
 public ComputerPlayer(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data, GameBoard board, INumberGenerator numberGenerator) : base(data)
 {
     this.gameBoard       = board;
     this.numberGenerator = numberGenerator;
     this.decisionMaker   = new DecisionMaker(this.numberGenerator);
 }
Пример #3
0
 public IPlayer CreatePlayer(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public IPlayer CreateComputerPlayer(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data, GameBoard board, INumberGenerator numberGenerator)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public IPlayer CreatePlayer(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data)
 {
     return(new Player(data));
 }
Пример #6
0
 public IPlayer CreateComputerPlayer(IGameDataSection <GameDataSectionKeys, GameDataValueKeys, ResourceTypes> data, GameBoard board, INumberGenerator numberGenerator)
 {
     return(new ComputerPlayer(data, board, numberGenerator));
 }