Beispiel #1
0
 private bool AddActivations()
 {
     for (int x = 0; x < model.Width; x++)
     {
         for (int y = 0; y < model.Height; y++)
         {
             IBallController ball = model.GetBrick(x, y);
             TileController  tile = model.GetTile(x, y);
             if (tile.HasEffect())
             {
                 EffectActivationCommand command = new EffectActivationCommand(ball, tile);
                 PrepareEffectActivation(command);
             }
         }
     }
     return(effectActivationCommands.Count > 0);
 }
Beispiel #2
0
 private void PrepareEffectActivation(EffectActivationCommand command)
 {
     PrepareCommand(command);
     effectActivationCommands.Push(command);
 }