No problem.
I'm actually very new to Clojure but someone posted that on the
clojure slack channel today. Serendipity.
On Friday, April 7, 2017 at 2:31:43 PM UTC-7, Max Muranov wrote:
>
> Yes, that's exactly what I needed, thank you!
>
--
You received this message because you are subs
Yes, that's exactly what I needed, thank you!
--
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
Note that posts from new members are moderated - please be patient with your
first post.
To un
Can you try #' ?
#' means the var itself, not the value inside the var
On Friday, March 31, 2017 at 2:04:29 PM UTC-7, Max Muranov wrote:
>
> 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:
>
> Ga
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