;;; along with Mudsync. If not, see <http://www.gnu.org/licenses/>.
(define-module (mudsync)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (ice-9 format)
#:use-module (ice-9 match)
(define-module (mudsync command)
#:use-module (mudsync parser)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-9)
#:use-module (ice-9 control)
(define-module (mudsync game-master)
#:use-module (mudsync networking)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (oop goops)
#:use-module (ice-9 match)
(actions
#:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(init-world gm-init-world)
(client-input gm-handle-client-input)
(lookup-special gm-lookup-special)
(define-module (mudsync gameobj)
#:use-module (mudsync command)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (srfi srfi-1)
#:use-module (ice-9 format)
(actions #:allocation #:each-subclass
;;; Actions supported by all gameobj
#:init-value
- (mhandlers
+ (build-actions
(init gameobj-act-init)
;; Commands for co-occupants
(get-commands gameobj-get-commands)
;;; along with Mudsync. If not, see <http://www.gnu.org/licenses/>.
(define-module (mudsync networking)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (ice-9 format)
#:use-module (ice-9 match)
(actions
#:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(start-listening
(lambda* (actor message
#:key (server %default-server)
#:use-module (mudsync gameobj)
#:use-module (mudsync game-master)
#:use-module (mudsync parser)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (ice-9 control)
#:use-module (ice-9 format)
(actions #:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(init player-init)
(handle-input player-handle-input)
(tell player-tell)
(define-module (mudsync room)
#:use-module (mudsync command)
#:use-module (mudsync gameobj)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (oop goops)
#:use-module (srfi srfi-1)
(actions #:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(cmd-go room-cmd-go)
(cmd-go-where room-cmd-go-where)
(announce-entrance room-announce-entrance)
#:use-module (mudsync game-master)
#:use-module (8sync agenda)
#:use-module (8sync repl)
- #:use-module (8sync systems actors)
- #:use-module (8sync systems actors debug)
+ #:use-module (8sync actors)
+ #:use-module (8sync debug)
#:use-module (srfi srfi-1)
#:use-module (ice-9 receive)
#:use-module (ice-9 q)
(define-module (mudsync thing)
#:use-module (mudsync command)
#:use-module (mudsync gameobj)
- #:use-module (8sync systems actors)
+ #:use-module (8sync actors)
#:use-module (8sync agenda)
#:use-module (oop goops)
#:use-module (ice-9 match)
#:init-value (wrap thing-contained-commands))
(actions #:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(cmd-take thing-cmd-take)
(cmd-drop thing-cmd-drop))))
(use-modules (mudsync)
(mudsync parser)
- (8sync systems actors)
+ (8sync actors)
(8sync agenda)
(oop goops)
(ice-9 control)
(commands
#:init-value readable-commands*)
(actions #:allocation #:each-subclass
- #:init-value (mhandlers
+ #:init-value (build-actions
(cmd-read readable-cmd-read))))
(define (readable-cmd-read actor message)
#:init-value chat-commands)
(actions #:allocation #:each-subclass
#:init-value
- (mhandlers
+ (build-actions
(cmd-chat npc-chat-randomly))))
(define random-bricabrac
(prep-direct-command "sign" 'cmd-sign-form
'("as"))))
(actions #:allocation #:each-subclass
- #:init-value (mhandlers
+ #:init-value (build-actions
(cmd-sign-form sign-cmd-sign-in))))
(commands
#:init-value summoning-bell-commands*)
(actions #:allocation #:each-subclass
- #:init-value (mhandlers
+ #:init-value (build-actions
(cmd-ring summoning-bell-cmd-ring))))
(define* (summoning-bell-cmd-ring bell message . _)
(list
(direct-command "sit" 'cmd-sit-furniture)))
(actions #:allocation #:each-subclass
- #:init-value (mhandlers
+ #:init-value (build-actions
(cmd-sit-furniture furniture-cmd-sit))))
(define* (furniture-cmd-sit actor message #:key direct-obj)
(commands #:init-value clerk-commands*)
(patience #:init-value 0)
(actions #:allocation #:each-subclass
- #:init-value (mhandlers
+ #:init-value (build-actions
(init clerk-act-init)
(cmd-chat clerk-cmd-chat)
(cmd-ask-incomplete clerk-cmd-ask-incomplete)
(define clerk-doesnt-know-text
"The clerk apologizes and says she doesn't know about that topic.\n")
-(define (clerk-cmd-ask clerk message indir-obj)
+(define* (clerk-cmd-ask clerk message #:key indir-obj
+ #:allow-other-keys)
(match (slot-ref clerk 'state)
('on-duty
(match (assoc (pk 'indir indir-obj) clerk-help-topics)
;;; along with Mudsync. If not, see <http://www.gnu.org/licenses/>.
(use-modules (mudsync)
- (8sync systems actors)
+ (8sync actors)
(8sync agenda)
(oop goops)
(ice-9 format))