(define readable-commands
(list
(direct-command "read" 'cmd-read)))
+
+(define readable-commands*
+ (append readable-commands
+ thing-commands))
+
(define readable-actions
(build-actions
(cmd-read (wrap-apply readable-cmd-read))))
-(define-class <readable> (<gameobj>)
+(define readable-actions*
+ (append readable-actions
+ thing-actions*))
+
+(define-class <readable> (<thing>)
(read-text #:init-value "All it says is: \"Blah blah blah.\""
#:init-keyword #:read-text)
(commands
- #:init-value readable-commands)
+ #:init-value readable-commands*)
(message-handler
#:init-value
- (simple-dispatcher (append gameobj-actions readable-actions))))
+ (simple-dispatcher readable-actions*)))
(define (readable-cmd-read actor message)
(<- actor (message-from message) 'tell