NanocTheBuilder / AlienPlayer4X

This is an Android app that helps running the Alien Players in Space Empires 4X board game
GNU General Public License v3.0
3 stars 1 forks source link

Composition instead of inheritance #17

Open NanocTheBuilder opened 6 years ago

NanocTheBuilder commented 6 years ago

Originally reported by Péter Balázs (Bitbucket: thilian, GitHub: Unknown)


For example, refactor TechBuyer, so that it does not contain non-polymprphic methods (buySecurityIfNeeded, etc.) Put these into the appropriate implementations. Extend Scenario4TechBuyer from basegame.TechBuyer