Closed Itangalo closed 2 years ago
Markets currently have the following relevant methods:
Not yet implemented:
One possible line between Market and Goods is that anything dealing with a single goods type belongs to the Goods class, the rest to the Market. Another is that anything that makes sense to come with the ownership of a goods belongs to the Goods class – making it easy to call from wherever the goods is transfered. I lean towards the latter – you go to the market to buy something, not to the goods. You ask the market how much sheep there is.
If so, all the current methods should be left on the Market, and only sell and resolve should be added to the resource. Let's try that.
Done.
Which methods should belong to the Market class, and which to the Goods class?