This patch adds a new score: the goal counter.
Each time a player hits the ball (with his ship) or shots at it, it becomes the "possessor" of the ball. When the ball explodes on the opponent's home, the posessor wins a "goal point". If it touches his own planet, he loses a "goal point".
I made it a bit cleaner than the cannonkeeper patch (it uses a private attribute and a public method in Player instead of a public attribute ... I should also send a patch to correct that mistake in the provious patch.)
The "possessor" definition is not completly satisfying... if a player simply unsuccessfuly tries to avoid the ball to hit his own planet, he will be punished ... Maybe it should take the angle or a timer into account. It's also easy to "steal" a goal, but that's probably harder to fix (or maybe it can consider the strenght of the shots ...).
hope you like it.
I have other patch ideas but I don't have the list with me (I can only remember a "story mode" to develop the background of the great war).
PS1: French translation of the "Goal" statistics column included, and clean done this time :)
PS2: Do you by chance have/hang out on an irc channel ?
PS3: oh, I'll leave it up to you, but i just realised that the goal count is reset after each match ... maybe it shouldn't.
PS4: btw, with the 164th svn revision, I can't go past the final TabStats... I have to restart the game to continue. is it just me ? controls configuration issue ? (i use Space as the "Special" key.)
PS5: it's late now ...