code clean up. removed unneeded methods for stats generation

synced stats info for mana curve on detailed display on deck selection screen so only up to
   Constants::STATS_MAX_MANA_COST+1 is used instead of the currently hard coded 15.
This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-19 03:18:48 +00:00
parent c3f99786fc
commit 4aaa93439a
3 changed files with 4 additions and 210 deletions

View File

@@ -70,7 +70,7 @@ string SimplePopup::getDetailedInformation(string filename)
<< "W: " << setw(2) << left << stw->countLandsPerColor[ Constants::MTG_COLOR_WHITE ] + stw->countBasicLandsPerColor[ Constants::MTG_COLOR_WHITE ] << endl
<< " --- Mana Curve --- " << endl;
for ( int costIdx = 0; costIdx < 15; ++costIdx )
for ( int costIdx = 0; costIdx < Constants::STATS_MAX_MANA_COST+1; ++costIdx )
if ( stw->countCardsPerCost[ costIdx ] > 0 )
oss << costIdx << ": " << setw(2) << left << stw->countCardsPerCost[ costIdx ] << " ";