コード例 #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));
        }
コード例 #2
0
 public MatchRules(IList <StageGroup> stages, StrikingRules strikeRules)
 {
     Stages      = new ReadOnlyCollection <StageGroup>(stages);
     StrikeRules = strikeRules;
 }
コード例 #3
0
 public StageList(IList <StageGroup> starterStages, IList <StageGroup> counterStages, StrikingRules strikingRules)
 {
     this.starterStages = new ReadOnlyCollection <StageGroup>(starterStages);
     this.counterStages = new ReadOnlyCollection <StageGroup>(counterStages);
     this.strikingRules = strikingRules;
 }
コード例 #4
0
        public override bool Equals(object obj)
        {
            StrikingRules other = obj as StrikingRules;

            return(other != null && other.ChoosingPlayer == ChoosingPlayer && other.StrikeOrder.SequenceEqual(StrikeOrder));
        }