X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=demos%2Factors%2Frobotscanner.scm;fp=demos%2Factors%2Frobotscanner.scm;h=1fd3c88b96ad7b5d0c81b38dbce05b6096d8d372;hp=0b32b36251eccc1f3f5f20d364af5b43e88b8418;hb=2785c244a09fc008488385b10053ef854fb27c34;hpb=063be529581b7004dae5ecb106bcf33729b9fef7 diff --git a/demos/actors/robotscanner.scm b/demos/actors/robotscanner.scm index 0b32b36..1fd3c88 100644 --- a/demos/actors/robotscanner.scm +++ b/demos/actors/robotscanner.scm @@ -223,13 +223,13 @@ (address-actor-id room))) ;; Find all droids in this room and exterminate the infected ones. - (msg-receive (_ #:key list-droids droid-ids #:allow-other-keys) + (mbody-receive (_ #:key list-droids droid-ids #:allow-other-keys) (<-wait room 'list-droids) (for-each (lambda (droid-id) (cond ;; Looks like it's infected - ((msg-val (<-wait droid-id 'infection-expose)) + ((mbody-val (<-wait droid-id 'infection-expose)) ;; Inform that it's infected (<- overseer 'transmission #:text (format #f "~a found to be infected... taking out" @@ -238,7 +238,7 @@ ;; Keep firing till it's dead. (let ((still-alive #t)) (while still-alive - (msg-receive (response #:key alive #:allow-other-keys) + (mbody-receive (response #:key alive #:allow-other-keys) (<-wait droid-id 'get-shot) (<- overseer 'transmission #:text (droid-status-format response)) @@ -253,7 +253,7 @@ droid-ids)) ;; Switch to next room, if there is one. - (set! room (msg-val (<-wait room 'get-next-room)))) + (set! room (mbody-val (<-wait room 'get-next-room)))) ;; Good job everyone! Shut down the operation. (<- overseer 'transmission