[jboss-svn-commits] JBL Code SVN: r30178 - labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Nov 16 08:22:38 EST 2009


Author: mark.proctor at jboss.com
Date: 2009-11-16 08:22:38 -0500 (Mon, 16 Nov 2009)
New Revision: 30178

Modified:
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/key-handlers.drl
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/pacman.drl
Log:
JBRULES-2342 Pacman
=Initial Commit

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/key-handlers.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/key-handlers.drl	2009-11-16 13:20:05 UTC (rev 30177)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/key-handlers.drl	2009-11-16 13:22:38 UTC (rev 30178)
@@ -38,7 +38,7 @@
  * is detected it creates derived possible Direction and validates it. If it's valid
  * then insert it.
  */
-rule keyListenerRuleNoDirection dialect "mvel"  no-loop when
+rule keyListenerRuleNoDirection dialect "mvel" when
     $keyEvent : KeyEvent() from entry-point "KeyListener"
     $l : Location()
     $newD : Direction() from createDirection( $l.character, $keyEvent )
@@ -55,7 +55,7 @@
  * Detects a new keypress (release). Creates derived possible Direction and validates it.
  * If the Direction is valid, delete the old Direction and replace with the new one.
  */
-rule keyListenerRule dialect "mvel" no-loop when
+rule keyListenerRule dialect "mvel" when
     $keyEvent : KeyEvent() from entry-point "KeyListener"
     $l : Location()
     $newD : Direction() from createDirection( $l.character, $keyEvent )

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/pacman.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/pacman.drl	2009-11-16 13:20:05 UTC (rev 30177)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/pacman.drl	2009-11-16 13:22:38 UTC (rev 30178)
@@ -15,7 +15,7 @@
  * The current Direction would move the Location into a WALL, so we can't move and need to retract the Direction,
  * so that no futher movement for is attempted
  */
-rule invalidDirection dialect "mvel" no-loop when
+rule invalidDirection dialect "mvel" when
     $l : Location( )
     $d : Direction( character == $l.character )
     $target : Cell( row == ($l.row + $d.vertical), col == ($l.col + $d.horizontal) )
@@ -31,7 +31,7 @@
  * It does not set the new direction straight away, this is because we need movement to be intime
  * with the Tick increase, so we schedule the new Location instead.
  */
-rule validDirection dialect "mvel" no-loop when
+rule validDirection dialect "mvel" when
     $l : Location( )
     $d : Direction( character == $l.character )
     $target : Cell( row == ($l.row + $d.vertical), col == ($l.col + $d.horizontal) )
@@ -45,7 +45,7 @@
 /**
  * When the Tick increases, update any Locations from inserted scheduled updates.
  */
-rule setNewDirection dialect "mvel" no-loop when
+rule setNewDirection dialect "mvel" when
     $s : ScheduledLocationUpdate()
     $l : Location( this == $s.location )
     Tick( tock == $s.tock )



More information about the jboss-svn-commits mailing list