(define-class <gameobj> (<actor>)
;; location id
(loc #:init-value #f
- #:accessor gameobj-loc)
+ #:getter gameobj-loc)
;; Uses a hash table like a set (values ignored)
(occupants #:init-thunk make-hash-table
- #:accessor gameobj-occupants)
+ #:getter gameobj-occupants)
;; game master id
(gm #:init-keyword #:gm
(format #t "DEBUG: Location set to ~s for ~s\n"
loc (actor-id-actor actor))
- (set! (gameobj-loc actor) loc)
+ (slot-set! actor 'loc loc)
;; Change registation of where we currently are
(if loc
(<-wait actor loc 'add-occupant! #:who (actor-id actor)))