public PlayerState(PlayerConfig playerConfig) { Id = Guid.NewGuid().ToString(); _communicationRequests = new Queue <Message <CommunicationPayload> >(); _communicationResponses = new Queue <Message <CommunicationResponsePayload> >(); WaitingForResponse = new Dictionary <string, bool>(); PlayerConfig = playerConfig; }
public Player(PlayerConfig playerConfig, IGameService gameService, IMessageProvider messageProvider, PlayerState playerState, IActionExecutor actionExecutor, AbstractStrategy strategy) { _gameService = gameService; _messageProvider = messageProvider; _playerConfig = playerConfig; _playerState = playerState; _actionExecutor = actionExecutor; _strategy = strategy; }