Classes | |
| struct | SortOnScore |
Functions | |
| int | compare (ScorchedContext &context, const LangString &nameX, TankScore &scoreX, const LangString &nameY, TankScore &scoreY) |
| int | getWinningTeam (ScorchedContext &context) |
| void | getSortedTanks (std::list< Tank * > &list, ScorchedContext &context) |
| void | getSortedTanksIds (ScorchedContext &context, std::list< unsigned int > &list, bool allTanks) |
| int TankSort::compare | ( | ScorchedContext & | context, | |
| const LangString & | nameX, | |||
| TankScore & | scoreX, | |||
| const LangString & | nameY, | |||
| TankScore & | scoreY | |||
| ) |
Definition at line 29 of file TankSort.cpp.
References TankScore::getScore(), and LangStringUtil::strcmp().
Referenced by getSortedTanks(), and TankSort::SortOnScore::operator()().
| void TankSort::getSortedTanks | ( | std::list< Tank * > & | list, | |
| ScorchedContext & | context | |||
| ) |
Definition at line 93 of file TankSort.cpp.
References compare().
Referenced by getSortedTanksIds(), TankAICurrentTarget::getTargets(), and ServerShotFinishedState::scoreOverallWinner().
| void TankSort::getSortedTanksIds | ( | ScorchedContext & | context, | |
| std::list< unsigned int > & | list, | |||
| bool | allTanks | |||
| ) |
Definition at line 113 of file TankSort.cpp.
References TankContainer::getAllTanks(), TankContainer::getPlayingTanks(), getSortedTanks(), and ScorchedContext::getTankContainer().
Referenced by ScoreDialog::calculateScores(), and TurnController::newGame().
| int TankSort::getWinningTeam | ( | ScorchedContext & | context | ) |
Definition at line 70 of file TankSort.cpp.
References ScorchedContext::getOptionsGame(), TankTeamScore::getScore(), and ScorchedContext::getTankTeamScore().
Referenced by ScoreDialog::draw(), and ServerShotFinishedState::scoreOverallWinner().
1.5.3