1
Programming / Re: Item Transfer Development
« on: February 04, 2011, 01:32:11 pm »Make sure you talk to supsuper first, because as far as I know the Item class is going to be obsolete, and replaced by something in the style of ItemContainer. Because on geoscape each inventory item is not an instance of an object in contrary to the battlescape. So the name "Item" is confusing, because the object actually represents a stack of items.Oh oh - but I was warned... I'll switch to IRC asap this weekend. Nevertheless enjoyed coding yesterday and really want to contribute, even if I have to rewrite everything or something different.
I also have a question: when soldiers are on a craft, the Base object still has ownership of the soldiers. Will that be the same with items?Right now the Base still has the ownership.
I'm also curious what happens if items are in transfer and the origin or destination base is destroyed by aliens Especially if destination is destroyed, will the goods be returned to the base of origin?Hmm, my Base<->Base Transfers are not implemented yet, but I would suggest that at GeoscapeState::time1Hour() check for complete Transfer and if destination are not existent, drop Items.
Can't remember how it was in the original, think the items were lost, too!?