Page 2 of 2

Posted: Tue Feb 20, 2007 8:27 pm
by Baiame
Thanks stodge, but I didn't understand the "visitor" concept from what I read of it. I think I'd rather stick with using the simple concepts that I could actually successfully deploy at my experience level (for now).

Posted: Tue Feb 20, 2007 8:36 pm
by stodge
Saturn wrote:Visitor? How is that? Too me the proper pattern looks more like flyweight. But this is of no help to throw pattern names around here. ^^
Why not? I read the thread in passing and tried to point something out. May or may not be relevant but what the hey. *shrug*

I read this:

"Each loop, I'll iterate through the list, calling an update() function."

and this:

"You see, I need a complex hierarchy of classes, and each class that represents a kind of entity that will exist in the world needs an update() function."

And I just thought "Visitor". Unless I've misunderstood something in the his post.

Again, *shrug*.

Posted: Tue Feb 20, 2007 9:01 pm
by Saturn
That happens when two problems are discussed in parallel. I haven't read the thread from the start. You are right, stodge, about problem 1, my answer stays valid too for problem 2. :)

Posted: Wed Feb 21, 2007 3:04 am
by Baiame
Oh yeah, sorry for the lack of clarity. I asked two completely different questions in this thread.