We can finally move around!
[mudsync.git] / mudsync / player.scm
index 63af65e77a8f84071f5780cfd486f6a5fb183717..bf19a16a6b0e1a0a4716f70333cddaec2a757b8e 100644 (file)
 (define player-actions
   (build-actions
    (init (wrap-apply player-init!))
-   (handle-input (wrap-apply player-handle-input))))
+   (handle-input (wrap-apply player-handle-input))
+   (tell (wrap-apply player-tell))
+   ;; @@: We really need to unify / make sensible this look stuff
+   (look-room (wrap-apply player-look-room))))
 
 (define player-actions*
   (append player-actions
      (<- player (gameobj-gm player) 'write-home
          #:text "Huh?\n"))))
 
+(define-mhandler (player-tell player message text)
+  (<- player (gameobj-gm player) 'write-home
+      #:text text))
+
+(define-mhandler (player-look-room player message)
+  (player-look-around player))
+
 
 ;;; player methods