public ScenarioRunner ReceivesRoadSegmentPlacementEvent(string playerName, uint roadSegmentStartLocation, uint roadSegmentEndLocation) { var gameEvent = new RoadSegmentPlacedEvent(this.playerAgentsByName[playerName].Id, roadSegmentStartLocation, roadSegmentEndLocation); this.currentPlayerAgent.AddInstruction(new EventInstruction(gameEvent)); return(this); }
public ScenarioRunner VerifyAllPlayersReceiveRoadSegmentPlacedEvent(string playerName, uint startLocation, uint endLocation) { this.playerAgents.ForEach(playerAgent => { var gameEvent = new RoadSegmentPlacedEvent(this.GetPlayerId(playerName), startLocation, endLocation); playerAgent.AddInstruction(new EventInstruction(gameEvent)); }); return(this); }
private void RoadSegmentBuiltEventHandler(RoadSegmentPlacedEvent roadSegmentBuiltEvent) { throw new NotImplementedException(); }