Beispiel #1
0
 public void Simulate(ref MatchState state, MatchInputContext input)
 {
     foreach (var rule in Rules)
     {
         rule.Simulate(ref state, input);
     }
     if (BlastZone != null)
     {
         state = BlastZone.Simulate(state);
     }
     CheckForFinish(state);
 }
Beispiel #2
0
 public MatchState Simulate(MatchState state, MatchInputContext input)
 {
     foreach (var rule in Rules)
     {
         state = rule.Simulate(state, input);
     }
     if (BlastZone != null)
     {
         state = BlastZone.Simulate(state);
     }
     CheckForFinish(state);
     return(state);
 }