| Summary: | 1st player's turn when dead | ||
|---|---|---|---|
| Product: | [Applications] konquest | Reporter: | tom |
| Component: | general | Assignee: | Russell Steffen <rsteffen> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | RedHat Enterprise Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
tom
2003-04-21 17:39:34 UTC
Subject: Re: 1st player's turn when dead
Hi Russell
I'm the one who reported this bug, I haven't had a look at the code, but I've written a few games and I'm guessing that there's a method for the next players turn. In my Java code it looks like this:
public void nextPlayer()
{
if (currentPlayer < noOfPlayers-1)
{
currentPlayer++;
}
else
{
currentPlayer = 0;
}
}
Assuming there's something similar it's probably a case of changing the else part select the next alive player. Although this is where you'll have to work your magic because my C isn't very good.
Hope this helps
Tom
tom@tomk.homelinux.org
On 29 Apr 2003 05:40:38 -0000
Russell Steffen <rsteffen@bayarea.net> wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=57516
> rsteffen@bayarea.net changed:
>
> What |Removed |Added
> -----------------------------------------------------------------------
> -----
> Status|UNCONFIRMED |ASSIGNED
> everconfirmed|0 |1
Fixed in both HEAD and KDE_3_1_BRANCH (I think that means it wil be in KDE 3.1.2). Added a loop at the beginning of a new turn to look for the first player that's still in the game. *** Bug has been marked as fixed ***. |