Re: A Design (Simplification) Problem

2013-11-15 Thread Oskar Kvist
Thank you everyone for your input! @James Hm, I think I understand what you mean. Interesing idea, I will think some more about it. @Sacha Ah, yes, of course. I don't know why I didn't think of it. Probably because I had I similar idea when I first started out but discarded it for some forgo

Re: A Design (Simplification) Problem

2013-11-13 Thread Cedric Greevey
One might also wish to consider a "pull" model, in which clients explicitly request information they need from the server. A client could ask for an object's health, given its ID; or for the current ids and positions of monsters in a particular small geographical area (which the server would look u

Re: A Design (Simplification) Problem

2013-11-13 Thread Phlex
Instead of making changes to your data structure, then creating an event, you could : -create a modification command as a data structure {:type :move :character-id 12 :move-to {some coords..}} -apply it to your data structure (each and every modification to the data structure would have to be do

Re: A Design (Simplification) Problem

2013-11-13 Thread James Reeves
Hi Oskar, I've recently been working on a similar problem. I've had some success with FRP (functional reactive programming), and I've written a library, Reagi, to implement what is hopefully a style of FRP that remains true to Clojure's ideology. First, let's