Exemplo n.º 1
0
        public static SetRules CreateDefaultSetRules()
        {
            var starterStages = new[]
            {
                new StageGroup(Stages.FinalDestination),
                new StageGroup(Stages.Battlefield),
                new StageGroup(Stages.Smashville),
                new StageGroup(Stages.TownAndCity),
                new StageGroup(Stages.LylatCruise),
            };
            var starterStriking = new StrikingRules(StrikingRules.Slot.A, StrikingRules.Slot.A, StrikingRules.Slot.B, StrikingRules.Slot.B);
            var starterRules    = new MatchRules(starterStages, starterStriking);

            var counterStages = new[]
            {
                new StageGroup(Stages.FinalDestination, Stages.MidgarOmega, Stages.SuzakuCastleOmega, Stages.WilyCastleOmega),
                new StageGroup(Stages.Battlefield, Stages.Dreamland),
                new StageGroup(Stages.Smashville),
                new StageGroup(Stages.TownAndCity),
                new StageGroup(Stages.LylatCruise),
            };
            var counterStriking = new StrikingRules(StrikingRules.Slot.B, StrikingRules.Slot.A);
            var counterRules    = new MatchRules(counterStages, counterStriking);

            return(new SetRules(starterRules, counterRules));
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            MatchRules other = obj as MatchRules;

            return(other != null && other.Stages.SequenceEqual(Stages) && other.StrikeRules.Equals(StrikeRules));
        }
 public StrikeController(MatchRules matchRules, Player firstPlayer)
 {
     this.matchRules  = matchRules;
     this.firstPlayer = firstPlayer;
 }