GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

UH: Split buildingtool.py

completed by: Мартин Кирилов

mentors: Chris Oelmueller, stubb, nihathrael

Unknown Horizons

Join our IRC channel when working on this task!

Over the years, horizons/gui/mousetools/buildingtool.py became one of our largest files in the entire project. It currently reports 850 lines of code (LOC) and contains many simple functions. It is important to keep this frequently altered part of UH in a good shape so that maintainability does not suffer.

Your task: Logic and actual worker functions should be split up in at least 2 files, probably 3 also is a good landmark. You will have to actually read the documentation about what each function does, confirm that by reading the code and then decide what goes where!

Ticket 1629