[Kde-games-devel] Review Request 116483: Restart button works and uses the current game configuration

Jaime Torres Amate jtamate at gmail.com
Mon Mar 10 07:55:01 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"?

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.


> On March 10, 2014, 1:34 a.m., Roney Gomes wrote:
> > src/playfield.h, line 52
> > <https://git.reviewboard.kde.org/r/116483/diff/1/?file=251058#file251058line52>
> >
> >     What does "restartPF" mean? Restart Playfield I suppose. If so, what's the need of this change? A restart method at the Playfield class is meaningful enough for me -- at least -- to have a glimpse about what it does.

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.


- Jaime Torres


-----------------------------------------------------------
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/d601daa1/attachment-0001.html>


More information about the kde-games-devel mailing list