enemy scores returing 0

23 views
Skip to first unread message

thiagoh

unread,
Oct 15, 2012, 11:30:39 PM10/15/12
to bw...@googlegroups.com
is there a reason for me to be getting 0 for all returns of enemies score?

code bellow..


for (set<Player*>::iterator it = Broodwar->enemies().begin(); it != Broodwar->enemies().end(); it++) {
Player* enemy = *it;
writer.append("\n<h4>Enemy score: kill score (");
writer.append(StringUtil::toString(enemy->getKillScore()));
writer.append(") razing score (");
writer.append(StringUtil::toString(enemy->getRazingScore()));
writer.append(") unit score (");
writer.append(StringUtil::toString(enemy->getUnitScore()));
writer.append(") building score (");
writer.append(StringUtil::toString(enemy->getBuildingScore()));
writer.append(")");
writer.append("\n</h4>");
}



Krasimir Krystev

unread,
Oct 16, 2012, 11:35:57 AM10/16/12
to bw...@googlegroups.com
is this code called in onEnd() ?
--
BR

Thiago Andrade

unread,
Oct 16, 2012, 11:52:46 AM10/16/12
to bw...@googlegroups.com
Yes..
--
Thiago Andrade

MSc Candidate in Computer Science, Federal University of Pernambuco (UFPE) – Brazil
BSc in Computer Engineering, University of Pernambuco (UFPE) – Brazil
Software Architect


Krasimir Krystev

unread,
Oct 20, 2012, 3:08:18 AM10/20/12
to bw...@googlegroups.com
Maybe an issue with StringUtil::toString() method ?
--
BR
Reply all
Reply to author
Forward
0 new messages