In my Graal's quest to my visuals & sounds system, I'd need to associate some own data to each objects instantiated in my Java code.
I'm actually instantiating some gridshape inside my Java code.
But I need to add some data (properties related to the sound part of my system for instance)
What is the best way to do that ?
For instance, I could create classes containing my whole sound related data.
I'd create Java Array (or map or whatever structure) with the data type of those classes.
And then, when I create a visual object, I create also the sound related object and, for instance, the key of the array element is linking both ..
sounds ugly, I mean: not cute.
My LOVED way would be to create global objects containing ... ALL I need.
Any leads/clues ?