public int buildScore(VirtualMatch match, int playerNo, boolean remember)
{
int ret = 0;
if (playerNo==0)
{
MatchPlayable p = match.getPlayer(playerNo);
os0 = new OneScore(scorer.length);
for (int i = 0; i < scorer.length; i++)
{
Scorable oneScore = scorer[i];
oneScore.setData(match, playerNo);
int s = oneScore.computeScore();
os0.lastScoreUnweighted[i] = s;
s *= scoreWeighting[i];
ret += s;
os0.lastScoreWeighted[i] = s;
}
ret += match.getAdditionalScore();
os0.overallScore = ret;
if (remember)
{
if (playerNo == 0)
p0.addElement(os0);
else
p1.addElement(os0);
}
return ret;
}
MatchPlayable p = match.getPlayer(playerNo);
os1 = new OneScore(scorer.length);
for (int i = 0; i < scorer.length; i++)
{
Scorable oneScore = scorer[i];
oneScore.setData(match, playerNo);