Advertisement
Guest User

Untitled

a guest
Nov 26th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defrecord Person
  2. [
  3.   x       ;; The x position on the world
  4.   y       ;; The y position on the world
  5.   z     ;; The z position on the world, is equal to height of the tile.
  6.   food  ;; The current food this person is carrying.
  7.   w     ;; The current world as this person sees it.
  8. ]
  9.   Actor
  10.   (live [this]
  11.     (do
  12.       (. Thread sleep 1000)
  13.       (send-off *agent* #'live)
  14.       (println "living the good life"))))
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement