replace-steps))))
;; @@: This could be kind of a messy way of doing gameobj-act-init
;; stuff. If only we had generic methods :(
replace-steps))))
;; @@: This could be kind of a messy way of doing gameobj-act-init
;; stuff. If only we had generic methods :(
"Your most basic game object init procedure.
Assists in its replacement of occupants if necessary and nothing else."
"Your most basic game object init procedure.
Assists in its replacement of occupants if necessary and nothing else."
(define (gameobj-goes-by gameobj)
"Find the name we go by. Defaults to #:name if nothing else provided."
(define (gameobj-goes-by gameobj)
"Find the name we go by. Defaults to #:name if nothing else provided."
"Get commands a co-occupant of the room might execute for VERB"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'commands))
"Get commands a co-occupant of the room might execute for VERB"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'commands))
"Get commands as the container / room of message's sender"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'container-commands))
verb))
(<-reply actor message #:commands filtered-commands))
"Get commands as the container / room of message's sender"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'container-commands))
verb))
(<-reply actor message #:commands filtered-commands))
"Get commands as being contained (eg inventory) of commanding gameobj"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'contained-commands))
"Get commands as being contained (eg inventory) of commanding gameobj"
(define filtered-commands
(filter-commands (val-or-run (slot-ref actor 'contained-commands))
(<-wait gameobj loc 'add-occupant! #:who (actor-id gameobj)))))
;; @@: Should it really be #:id ? Maybe #:loc-id or #:loc?
(<-wait gameobj loc 'add-occupant! #:who (actor-id gameobj)))))
;; @@: Should it really be #:id ? Maybe #:loc-id or #:loc?
By default, this is whether or not the generally-visible flag is set."
(slot-ref gameobj 'generally-visible))
By default, this is whether or not the generally-visible flag is set."
(slot-ref gameobj 'generally-visible))
- (message-ref
- (<-wait gameobj (slot-ref gameobj 'gm) 'lookup-special
- #:symbol special-symbol)
- 'val))
+ (msg-receive (_ #:key val)
+ (<-wait gameobj (slot-ref gameobj 'gm) 'lookup-special
+ #:symbol special-symbol)
+ val))
;; if it's false, return nothing
(#f #f)
;; otherwise it's probably an address, return it as-is
;; if it's false, return nothing
(#f #f)
;; otherwise it's probably an address, return it as-is