Drop-inventory á la diablo. Better method then mine?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Beam

Drop-inventory á la diablo. Better method then mine?

Post by Beam »

Hi

As the subject implies, that's what I need, and Im not gonna use a mouse. So what's the smoothest way to do it? I thought of:

All objects in a list with a 2d-pos plus width and height of that object ( think of a tile/square backpack). When trying to add new stuff to the inventory I check the 2d-array of bools wheater of not the tiles in claim are occupied or not.

You think of a smoother way, plz let me know!

Beam
Beam

Post by Beam »

Noone?

Any1 that uses something similar and think I should go with this one or is there any better way? (thousands of things to do, dont wanna do to much that I have to scrap)

Thanks
SARIN
Posts: 139
Joined: Fri Oct 29, 2004 3:53 am

Post by SARIN »

hmm this might work better, at least it should be easier. make a struct for the inventory (im assuming more diablo 2 style). in it, have [pos x and y for the array, bool occupied, and a reference to an object, if any, that is using part of the square.
Post Reply