Staz . wrote:
> Actually this is what my code looks like right now. But as I write this
> I'm thinking: "when would I want to refer to my Entity as a WorldObject
> and not through one of its Roles?" and can't come up with any answer...
>
> These are the main options that you have, and that I have found to be
> useful and scalable.
Maybe "WorldObject" is kind of "role" by itself, being many other roles.
It might be useful to tie several roles together. Might save "are these
different roles references to same object" checks later somewhere. :)
When I say "Role" I mean roles in actual interactions, so the ***ONLY***
way for you to know if it's a role or not is to figure out what your
interactions are. If there is NO interaction that cares about
"WorldObject", then it's not a role. But this all depends on what you're
actually trying to accomplish.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev