gnome-games r7710 - trunk/aisleriot/rules
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7710 - trunk/aisleriot/rules
- Date: Wed, 18 Jun 2008 20:50:03 +0000 (UTC)
Author: chpe
Date: Wed Jun 18 20:50:03 2008
New Revision: 7710
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7710&view=rev
Log:
Implement dealable? for elevator. Bug #445955
Modified:
trunk/aisleriot/rules/elevator.scm
Modified: trunk/aisleriot/rules/elevator.scm
==============================================================================
--- trunk/aisleriot/rules/elevator.scm (original)
+++ trunk/aisleriot/rules/elevator.scm Wed Jun 18 20:50:03 2008
@@ -316,6 +316,12 @@
(check-for-flips slot-id)))
(#t #f)))
+(define (dealable?)
+ (not (empty-slot? 0)))
+
+(define (do-deal-next-cards)
+ (play-card 0))
+
;; Single-clicking isn't sane in click-to-move more, so we mostly ignore it
;; in that case.
(define (button-clicked slot-id)
@@ -372,8 +378,8 @@
(define (timeout)
#f)
-(set-features droppable-feature)
+(set-features droppable-feature dealable-feature)
(set-lambda new-game button-pressed button-released button-clicked
button-double-clicked game-continuable game-won get-hint get-options
-apply-options timeout droppable?)
+apply-options timeout droppable? dealable?)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]