object vs object? Lists? Stacks? Maps?
Monkey Forums/Monkey Programming/object vs object? Lists? Stacks? Maps?
| ||
I'm toying with writing a rect collision module, something along the lines of Blitzmax's collision layer system. What I need to be able to do is store a 'rect' class with four fields; x, y, width, height. Then alongside I want to be able to associate an object (which could be anything) with that rect. Be grateful if someone could give me a hint as to which proverbial tree I should be barking up in order to store this kind of data. |
| ||
Blitzmax has a collision layer system? |
| ||
Blitzmax has a collision layer system? Yep.Anyway, doesn't matter - done it. Pretty basic but it does the job I wrote it for, and that's to provide a collision layer system for apps with lots of static collision data (i.e. GUIs). http://www.monkeycoder.co.nz/Community/posts.php?topic=1474 |
| ||
from your brief description, interfaces are probably what you want. |