[Widelands-dev] [Bug 916545] Re: About depending on GGZ packages

2012-02-02 Thread SirVer
protocol looks good to me. I would just suggest using static const std::string = "COMMANDNAME". #defines are not typesafe and have no benefits in this case (IMHO). Otherwise the protocol looks good to me. I am also pro ignoring translation of motd and therelike. The other messages should imho be te

[Widelands-dev] [Bug 916545] Re: About depending on GGZ packages

2012-02-02 Thread Nasenbaer
alright I will change the strings to static const std::string IGPCMD_LOGIN = "LOGIN"; etc. about the testsuite: unfortunally the InternetGaming class is not *that* much "standalone" - it at least needs the network code for sending and receiving data packages + it has to be a chat controller (we

[Widelands-dev] [Bug 916545] Re: About depending on GGZ packages

2012-02-02 Thread Nasenbaer
okay. Changes to the protocol are in the branch, as well as my initial version of InternetGamingMessages - mini class that returns a translated string for a message code from the metaserver like "WRONG_PASSWORD". Any comments on that? -- You received this bug notification because you are a membe

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

2012-02-02 Thread Borim
Borim has proposed merging lp:~borim/widelands/bug590631 into lp:widelands. Requested reviews: Widelands Developers (widelands-dev) Related bugs: Bug #590631 in widelands: "All workers die, when warehouse/hq is destroyed" https://bugs.launchpad.net/widelands/+bug/590631 For more details, se

[Widelands-dev] [Bug 916545] Re: About depending on GGZ packages

2012-02-02 Thread Hans Joachim Desserud
As I said, I wasn't sure how easy it would be. It just seemed like a nice opportunity to add tests to one of the important components. Like SirVer mentioned, I imagined something like running a local server and seeing if that responds in the expected way would be the easist way. (Mocking [1] might