projects
/
mudsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
You can now look at things
[mudsync.git]
/
mudsync
/
gameobj.scm
diff --git
a/mudsync/gameobj.scm
b/mudsync/gameobj.scm
index 827876955432036712c4f8bae655f89573e66ee6..3e23ae6ff7b7054e7fe3fe26e614588b724f1b2f 100644
(file)
--- a/
mudsync/gameobj.scm
+++ b/
mudsync/gameobj.scm
@@
-52,7
+52,7
@@
(set-loc! (wrap-apply gameobj-set-loc!))
(get-name (wrap-apply gameobj-get-name))
(get-desc (wrap-apply gameobj-get-desc))
(set-loc! (wrap-apply gameobj-set-loc!))
(get-name (wrap-apply gameobj-get-name))
(get-desc (wrap-apply gameobj-get-desc))
- (goes-by (wrap-apply gameobj-goes-by))
+ (goes-by (wrap-apply gameobj-
act-
goes-by))
(visible-name (wrap-apply gameobj-visible-name))))
;;; *all* game components that talk to players should somehow
(visible-name (wrap-apply gameobj-visible-name))))
;;; *all* game components that talk to players should somehow
@@
-77,7
+77,7
@@
(goes-by #:init-keyword #:goes-by
#:init-value #f)
(goes-by #:init-keyword #:goes-by
#:init-value #f)
- (desc #:init-value
""
+ (desc #:init-value
#f
#:init-keyword #:desc)
;; how to print our name
#:init-keyword #:desc)
;; how to print our name
@@
-127,6
+127,11
@@
(list name)))
(else '())))
(list name)))
(else '())))
+(define (gameobj-act-goes-by actor message)
+ "Reply to a message requesting what we go by."
+ (<-reply actor message
+ #:goes-by (gameobj-goes-by actor)))
+
(define (val-or-run val-or-proc)
"Evaluate if a procedure, or just return otherwise"
(if (procedure? val-or-proc)
(define (val-or-run val-or-proc)
"Evaluate if a procedure, or just return otherwise"
(if (procedure? val-or-proc)