But if I perform such thing this in clojure:
(send-off (:movement-agent game) (fn [_] game))
As I found out, I get something like this:
Game {:heroes-container obj[Ref],
:movement-agent obj[Agent{:val
Game {:heroes-container obj[Ref],
:movement-agent obj[Agent
And there are several agents that realize game objects behavior. For
example this is movement agent:
(defn movement-loop [{:keys [game last-time] {:keys [heroes-container
bullets-container finished?]} :game}]
"Moves heroes by their current direction"
(if-not finished?
(send-off *agent*
I made a simple example-game for practice. Everything worked fine with
global containers like heroes-container or pickups-container (refs). They
were working in global agents. But now I need to run several game instances
at the same time, so I need Game class with its own "global variables"
Thi
More details in the announcement blog
post:
http://dragan.rocks/articles/17/Neanderthal-090-released-Clojure-high-performance-computing
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Not