Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-04 Thread SirVer
as said, other devs that are as experienced as I am disagree with this last point. So it is more bike shedding and should not be overrated. Other points are more clear cut. I suggest reading effective c++ and effective c++11 if you want to learn more about good code design - both are really exc

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-04 Thread GunChleoc
I like learning good coe design though, so I'll put it on the todo-list :) -- https://code.launchpad.net/~widelands-dev/widelands/one_tribe/+merge/274832 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/one_tribe. ___

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-03 Thread SirVer
> This function is used in the GameSettingsProvider classes before an egbase is > created. Is there a better design than using static for this? IMHO, yes. Pull the method out into a stand alone function. It is more modular, and less coupled (static methods can access private static members and p

[Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-03 Thread noreply
The proposal to merge lp:~widelands-dev/widelands/one_tribe into lp:widelands has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~widelands-dev/widelands/one_tribe/+merge/274832 -- Your team Widelands Developers is subscribed to branch lp:~wi

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-02 Thread GunChleoc
I have a question regarding this comment: // NOCOM(#codereview): no need to be static? std::vector Tribes::get_all_tribeinfos() This function is used in the GameSettingsProvider classes before an egbase is created. Is there a better design than using static for this? -- https://code.launchpad.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-02 Thread GunChleoc
Thanks for the review! Regarding the lookup tables http://bazaar.launchpad.net/~widelands-dev/widelands/one_tribe/revision/7464 We do need the compatibility, because map loading has a building packet etc. I only included those entities in it that can't be avoided for map loading. I decided to r

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-02 Thread SirVer
Review: Approve > Renaming "outputs" to "occupants" won't work, because this is a feature of > production sites in general and not just militarysites. Add a TODO that militarysite should not be a productionsite? Outputs is really weird for militarysites. Okay, done with the review. I added a

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-01 Thread SirVer
[Num Glob vs list_directory] I doubt that the regex matching is the slow part, but I can understand that listing all files in the directories and then filtering the ones we are not interested in is slow. The numglob is only checking if files exist, which will be faster. But I just grepped the

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-01 Thread SirVer
Not yet done. I reviewed everything but src/logic/, I cannot concentrate anymore now though. I'll finish the rest tomorrow. -- https://code.launchpad.net/~widelands-dev/widelands/one_tribe/+merge/274832 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-01 Thread GunChleoc
Regarding http://bazaar.launchpad.net/~widelands-dev/widelands/one_tribe/revision/7452#tribes/buildings/militarysites/atlanteans/guardhouse/init.lua Renaming "outputs" to "occupants" won't work, because this is a feature of production sites in general and not just militarysites. -- https://code

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-01 Thread SirVer
Still working on the review. Have another long train ride today and hope to get it done then. I'll get back to this thread then. In general I find very little to complain about in the code - really great job :) > Am 01.11.2015 um 11:01 schrieb GunChleoc : > > Some comments to the code revie

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/one_tribe into lp:widelands

2015-11-01 Thread GunChleoc
Some comments to the code review - posting them here rather than in the code in order not change the branch, in case you're still working on it: Regarding http://bazaar.launchpad.net/~widelands-dev/widelands/one_tribe/revision/7452#tribes/init.lua We do need the number glob for parsing the anim