[iagno] Temporarily change MODERATE_MOVE_DELAY.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Temporarily change MODERATE_MOVE_DELAY.
- Date: Mon, 13 Apr 2015 15:37:35 +0000 (UTC)
commit 835ca9f25127eb796d843a7c1d76771c228e294a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Apr 13 17:36:52 2015 +0200
Temporarily change MODERATE_MOVE_DELAY.
src/iagno.vala | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index 153c84e..f02d117 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -34,7 +34,7 @@ public class Iagno : Gtk.Application
/* Seconds */
private static const double QUICK_MOVE_DELAY = 0.4;
- private static const double MODERATE_MOVE_DELAY = 1.0;
+ private static const double MODERATE_MOVE_DELAY = 1.7;
private static const double SLOW_MOVE_DELAY = 2.0;
/* Widgets */
@@ -316,7 +316,7 @@ public class Iagno : Gtk.Application
update_ui ();
if (player_one != Player.DARK && computer != null)
- computer.move_async.begin (MODERATE_MOVE_DELAY);
+ computer.move_async.begin (MODERATE_MOVE_DELAY); // TODO MODERATE_MOVE_DELAY = 1.0, but
after the sliding animation…
}
private void update_ui ()
@@ -384,12 +384,7 @@ public class Iagno : Gtk.Application
* but not so long as to become boring.
*/
if (game.current_color != player_one && computer != null)
- {
- if (fast_mode)
- computer.move_async.begin (QUICK_MOVE_DELAY);
- else
- computer.move_async.begin (SLOW_MOVE_DELAY);
- }
+ computer.move_async.begin (fast_mode ? QUICK_MOVE_DELAY : SLOW_MOVE_DELAY);
}
private void pass ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]