I don't get the idea about the Dukats. Do you need to do more than just remember one value, i.e. the sum of Dukats ? Or are you trying to say that you want to store each and every single Dukat as a distinct object - which I don't see the point of, not to mention it would be horribly inefficient, and completely non-sensical (one Dukat is identical for all purposes to any other Dukat). So why would you ever need more than one Dukat object, which stores a number (which represents how "many" Dukats the holder actually has) ?
Again, I'm not sure I get it. Do you need more than 4 bytes or such to store the Dukats ?Similarly, Dukats can be stored in a Purse, the amount of memory needed for storing the Dukats has to be constant for every Purse. Any ideas ?
(4 bytes assuming 2^^32 is enough for the amount of Dukats, of course).
For the "current big problem": I dunno, do you HAVE to come up with a unique identifier ?
I assume you know it's okay to have collisions in hash tables...so...
Also, the choice of the data structure that you'll use should be interesting - at a first glance, I'd say hash tables, since they're generally the most efficient ones...
sigh, I'm afraid that instead of help you're just getting more questions here...sorry.
Bookmarks