subchannel13 / Stareater

4X turn based strategy
GNU General Public License v3.0
32 stars 7 forks source link

Weighted point distribution pattern #128

Closed subchannel13 closed 5 years ago

subchannel13 commented 5 years ago

Multiple places in code distribute some sort of points to a collection of object where each object receives a certain share (has a certain weight) and has a capacity. Such places should be refactored to use as much common code as possible: