Some additions to the deck statistics.

- Displaying title for each page
- In screen showing games against AI, displaying actual number of games won/played in addition to percentage
- Added two new screens (3,4) - mana cost/color breakdown for creatures (3) and non-creature spells (4)

More to come...
This commit is contained in:
d32.wagic
2009-11-07 20:04:09 +00:00
parent 245cfc625c
commit af343a4a7f
4 changed files with 128 additions and 45 deletions

View File

@@ -39,6 +39,15 @@ int DeckStats::percentVictories(string opponentsFile){
}
}
DeckStat* DeckStats::getDeckStat(string opponentsFile){
map<string,DeckStat *>::iterator it = stats.find(opponentsFile);
if (it == stats.end()){
return NULL;
}else{
return it->second;
}
}
int DeckStats::nbGames(){
int nbgames = 0;
map<string,DeckStat *>::iterator it;