Refactor protected member variables to private
Bug #1350227 reported by
GunChleoc
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Low
|
Unassigned |
Bug Description
I noticed that the buildings have a lot of protected variables, mostly because they're used in map_io. I think we should make as many of these as we can private with proper getters & setters.
Opinions?
Changed in widelands: | |
importance: | Undecided → Low |
tags: | added: cleanups lowhangingfruit |
Changed in widelands: | |
status: | Expired → Confirmed |
To post a comment you must log in.
I am torn on this. On one site, protected is basically public. And public members are bad. Then again, the io stuffed is pulled out so that the logic does not contain tons of serialization and deserialization information.
I think that protected members are worse than having serialization code all over the place. So I am pro this change in general. But given that it will be a tremendous amount of work I think it should have a very low priority. Also the new design is not immediately apparent to me - this will need some iterations.