[Kde-games-devel] Review Request 116483: Restart button works and uses the current game configuration
Roney Gomes
roney477 at gmail.com
Mon Mar 10 11:58:03 UTC 2014
> On March 10, 2014, 1:34 a.m., Roney Gomes wrote:
> > src/controller.h, line 70
> > <https://git.reviewboard.kde.org/r/116483/diff/1/?file=251049#file251049line70>
> >
> > I'm not sure what "restartC" means. "Restart Controller" perhaps? If so, considering we're at the controller class already, why not just call it "restart"?
>
> Jaime Torres Amate wrote:
> I'll change it, now that it works. I was confused a lot with so many restart() in so many places that I needed to change their name to know what was going on.
That said, you're free to commit your patch and close this request. Please, do not forget the other issues I also opened.
Ship it!
- Roney
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/116483/#review52480
-----------------------------------------------------------
On Feb. 28, 2014, 4:22 p.m., Jaime Torres Amate wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/116483/
> -----------------------------------------------------------
>
> (Updated Feb. 28, 2014, 4:22 p.m.)
>
>
> Review request for KDE Games and Roney Gomes.
>
>
> Repository: knavalbattle
>
>
> Description
> -------
>
> The restart button made the network game use the wrong configuration (it created a new controller), now it uses the current game configuration (and controller). It restarted the chat and sent again the nick, now it is not needed and is not done.
>
> I have introduced, I needed it desperately, the name of the message interchanged as an XML attribute (totally backwards compatible). in protocol.cpp and message.h
>
>
> Diffs
> -----
>
> src/controller.h eb5f63f
> src/controller.cpp 3a26170
> src/entity.h c6fcdbc
> src/entity.cpp 3104029
> src/mainwindow.cpp 7ef4482
> src/message.h 58b5beb
> src/networkentity.h aa66543
> src/networkentity.cpp f19b1d5
> src/playerentity.cpp c6b0a1d
> src/playfield.h 5766022
> src/playfield.cpp 5ebfbc2
> src/protocol.cpp 2416164
> src/sea.cpp 77a8864
>
> Diff: https://git.reviewboard.kde.org/r/116483/diff/
>
>
> Testing
> -------
>
> Lots of network games against myself (and some local games against AI too).
> Place half the ships to see if it was possible to start to shoot too soon, make one of them unable to finish placing the remaining ships several times, then finish it... waiting for the opposite to finish placing ships. Do the same with the other player.. Start shooting (some times finishing the game), and then press restart.
>
>
> Thanks,
>
> Jaime Torres Amate
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20140310/c82b42ba/attachment.html>
More information about the kde-games-devel
mailing list