diff options
Diffstat (limited to 'scripts/toy/play.groovy')
-rw-r--r-- | scripts/toy/play.groovy | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy index bc0c954..6889693 100644 --- a/scripts/toy/play.groovy +++ b/scripts/toy/play.groovy @@ -1,8 +1,4 @@ { toy -> - final PLAY = "play"; - final REDRESS = "redress"; - final RELEASEFROM = "releaseFrom"; - toy.metaClass.stateToyName { state -> switch (state) { case CUFFED: @@ -315,9 +311,9 @@ showLounge(); }; - toy.addNamedEvent(PLAY, { name, arg, schedTime, rt -> toy.playEvent(rt, arg) }); - toy.addNamedEvent(RELEASEFROM, { name, arg, schedTime, rt -> toy.releaseFrom(rt, arg, name) }); - toy.addNamedEvent(REDRESS, { name, arg, schedTime, rt -> toy.redress(rt) }); + toy.addNamedEvent(toy.PLAY, { name, arg, schedTime, rt -> toy.playEvent(rt, arg) }); + toy.addNamedEvent(toy.RELEASEFROM, { name, arg, schedTime, rt -> toy.releaseFrom(rt, arg, name) }); + toy.addNamedEvent(toy.REDRESS, { name, arg, schedTime, rt -> toy.redress(rt) }); toy.TOYTOYS.each { toyState -> toy.addRequestable("un$toyState".toString(), "May I be un-$toyState".toString(), { toy.requestRelease(toyState) }, |