Example #1
0
 protected void MoveUp()
 {
     var command = new MoveCommand(this, Direction.Up);
     commands.Add(command);
 }
Example #2
0
 protected void MoveLeft()
 {
     var command = new MoveCommand(this, Direction.Left);
     commands.Add(command);
 }
Example #3
0
 protected void MoveRight()
 {
     var command = new MoveCommand(this, Direction.Right);
     commands.Add(command);
 }
Example #4
0
 protected void MoveDown()
 {
     var command = new MoveCommand(this, Direction.Down);
     commands.Add(command);
 }