Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private void RoadSegmentBuiltEventHandler(RoadSegmentPlacedEvent roadSegmentBuiltEvent)
 {
     throw new NotImplementedException();
 }