Skip to content
Commit 5bf99b76 authored by Jaime Torres Amate's avatar Jaime Torres Amate
Browse files

Show not shunk ships when the game finishes

This patch includes the work done by Roney in the show-ships branch
but I still do not know how to merge out of date branches.
My work is only the two phase end of game of the network part.

How does it accomplishes its purpose?
* The end game has now two phases, first send/receive the ships in the
GameOverMessage, then the end game part.
* All the entities include a reference to the SeaView to be able to show
 the ships (included in the parent class Entity)
* The shoots are drawn over the ships
* Instead of a parameter, the flag of adjacent ships is now a member
 (grabbed from the multiple ships patch).
* The ships have now the coordinates where they are.
* The GameOverMessage was already ready to send/receive ships
 (with a little bug off_by_1 fixed).
* Changed the name of a variable from a confusing name m_sea to a more
 clear m_seaview
* There are now two lists of ships (for both entities to be able to
 interchange the ships)

* It does not include configuration for this functionality, I think
 everybody expects this behavior from this kind of game.

BUG: 168657
FIXED-IN: 4.12
REVIEW: 114620
parent 63f50a72
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment