public static void RedSlimeNoYCrossesX_NoDamageHasDisabledBattleBots_Defeated() { var players = new List <Player> { new Player(PlayerActionFactory.CreateDoubleActionList(new PlayerActionType?[] { PlayerActionType.MoveBlue, PlayerActionType.Charlie, PlayerActionType.MoveRed, PlayerActionType.MoveRed, PlayerActionType.ChangeDeck, null, null, null, PlayerActionType.BattleBots, null, PlayerActionType.BattleBots, null }), 0, PlayerColor.Blue, PlayerSpecialization.EnergyTechnician), new Player(PlayerActionFactory.CreateSingleActionList(ComputerMaintenanceActions), 1, PlayerColor.Green) }; const TrackConfiguration internalTrack = TrackConfiguration.Track1; const int timeAppears = 3; const int blueDamage = 0; const int whiteDamage = 0; const int redDamage = 0; const bool isDefeated = true; const bool isSurvived = false; const bool battleBotsDisabled = true; SlimeBHelper(isDefeated, isSurvived, internalTrack, timeAppears, players, blueDamage, redDamage, whiteDamage, battleBotsDisabled); }
public static void Test_ShiftDoubleAction_BothPerformed() { var player = new Player(PlayerActionFactory.CreateDoubleActionList(new PlayerActionType?[] { PlayerActionType.Alpha, null, PlayerActionType.MoveRed, PlayerActionType.Bravo, PlayerActionType.ChangeDeck, PlayerActionType.Charlie, PlayerActionType.BattleBots, PlayerActionType.Charlie, PlayerActionType.ChangeDeck, PlayerActionType.MoveBlue }), 0, PlayerColor.Blue); player.Actions.ElementAt(0).FirstActionSegment.SegmentStatus = PlayerActionStatus.Performed; player.Actions.ElementAt(0).SecondActionSegment.SegmentStatus = PlayerActionStatus.Performed; player.Actions.ElementAt(1).FirstActionSegment.SegmentStatus = PlayerActionStatus.Performed; player.Actions.ElementAt(1).SecondActionSegment.SegmentStatus = PlayerActionStatus.Performing; player.ShiftFromPlayerActions(2); var expectedActions = PlayerActionFactory.CreateDoubleActionList(new PlayerActionType?[] { PlayerActionType.Alpha, null, PlayerActionType.MoveRed, PlayerActionType.Bravo, null, null, PlayerActionType.ChangeDeck, PlayerActionType.Charlie, PlayerActionType.BattleBots, PlayerActionType.Charlie }).ToList(); expectedActions.ElementAt(0).FirstActionSegment.SegmentStatus = PlayerActionStatus.Performed; expectedActions.ElementAt(0).SecondActionSegment.SegmentStatus = PlayerActionStatus.Performed; expectedActions.ElementAt(1).FirstActionSegment.SegmentStatus = PlayerActionStatus.Performed; expectedActions.ElementAt(1).SecondActionSegment.SegmentStatus = PlayerActionStatus.Performing; AssertActionAreEqual(expectedActions.ToList(), player.Actions.ToList()); }
public static void RedSlimeTwoYCrossesXYY2Z_ProgenyACrossesY2_ProgenyBCrossesNoBreakpoints_TwoRedDamageHasDisabledBattleBots_Survived() { var redPlayerActions = PlayerActionFactory.CreateDoubleActionList(new PlayerActionType?[] { PlayerActionType.MoveRed, PlayerActionType.ChangeDeck, PlayerActionType.Charlie, PlayerActionType.MoveBlue, null, null, null, null, null, null, null, null, null, null, null, null, null, null, PlayerActionType.BattleBots, null }).ToList(); redPlayerActions.Add(new PlayerAction(PlayerActionType.MoveBlue, PlayerActionType.BattleBots, PlayerActionType.AdvancedSpecialization)); var players = new List <Player> { new Player(redPlayerActions, 1, PlayerColor.Red, PlayerSpecialization.SpecialOps), new Player(PlayerActionFactory.CreateSingleActionList(ComputerMaintenanceActions), 2, PlayerColor.Green) }; const TrackConfiguration internalTrack = TrackConfiguration.Track7; const int timeAppears = 4; const int blueDamage = 0; const int whiteDamage = 0; const int redDamage = 2; const bool isDefeated = false; const bool isSurvived = true; const bool battleBotsDisabled = false; SlimeBHelper(isDefeated, isSurvived, internalTrack, timeAppears, players, blueDamage, redDamage, whiteDamage, battleBotsDisabled); }