Example #1
0
 public void OnSendMove(object sender, SendEventArgs e)
 {
     if (IsLeft(e))
     {
         MovePlatformsLeft();
     }
     if (IsRight(e))
     {
         MovePlatformsRight();
     }
 }
Example #2
0
 private static bool IsRight(SendEventArgs e)
 {
     return e.Key == ConsoleKey.RightArrow;
 }
Example #3
0
 private static bool IsLeft(SendEventArgs e)
 {
     return e.Key == ConsoleKey.LeftArrow;
 }
Example #4
0
 //TODO: create timer
 public void OnShow(object sender, SendEventArgs e)
 {
     matrix = e.Matrix as Matrix;
     Printer.PrintMatrix(matrix);
 }
Example #5
0
 public void OnShow(object sender, SendEventArgs e)
 {
     Show(this, new SendEventArgs(layer));
 }
Example #6
0
 public void OnSendMove(object sender, SendEventArgs e)
 {
     SendMove(sender, e);
 }