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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user