예제 #1
0
 private void actionTimer_Tick(object sender, EventArgs e)
 {
     // Enemies and magic weapons move independent of player and according to time tick
     if (!gameIsTurnBased)
     {
         game.Move(Direction.None, random);
         UpdateCharacters();
     }
 }
예제 #2
0
 private void leftMove_Click(object sender, EventArgs e)
 {
     game.Move(Direction.Left, random);
     UpdateCharacters();
 }
예제 #3
0
 private void MoveUp_Click(object sender, EventArgs e)
 {
     game.Move(Direction.Up, random);
     UpdateCharacters();
 }
예제 #4
0
 private void moveUpButton_Click(object sender, EventArgs e)
 {
     game.Move(Direction.Up, random);
     this.UpdateCharacters();
 }
예제 #5
0
 private void buttonMoveUp_Click(object sender, EventArgs e)
 {
     _game.Move(Direction.Up, _random);
     UpdateGame();
 }