Enrico Weigelt, metux IT consult
2016-12-03 08:53:26 UTC
Hi folks,
could anyone please give me some insight, how GoodsType, AbstractGoods
and Lists of AbstractGoods play together ?
I guess, GoodsType describes the existing types of goods, while
AbstractGoods represents a storage slot (eg. in city or on a ship).
What puzzles me most: why are List<AbstractGoods> at all ?
AFAIK, the number of good types is strictly limited, so eg. in the
cities we could easily use an fixed-size array, thus never having to
iterate lists here.
Where are the producable goods on individual tiles coming from ?
Is this individual to each tile or derived from the terrain type ?
And how are the worker-type dependent values computed ? Is there some
per-worker-type factor ?
--mtx
could anyone please give me some insight, how GoodsType, AbstractGoods
and Lists of AbstractGoods play together ?
I guess, GoodsType describes the existing types of goods, while
AbstractGoods represents a storage slot (eg. in city or on a ship).
What puzzles me most: why are List<AbstractGoods> at all ?
AFAIK, the number of good types is strictly limited, so eg. in the
cities we could easily use an fixed-size array, thus never having to
iterate lists here.
Where are the producable goods on individual tiles coming from ?
Is this individual to each tile or derived from the terrain type ?
And how are the worker-type dependent values computed ? Is there some
per-worker-type factor ?
--mtx