#include <ScoreDialog.h>

Public Member Functions | |
| virtual void | display () |
| virtual void | windowInit (const unsigned state) |
| virtual void | draw () |
Static Public Member Functions | |
| static ScoreDialog * | instance () |
| static ScoreDialog * | instance2 () |
Protected Member Functions | |
| void | calculateScores () |
| void | addLine (Tank *current, float y, char *rank, bool finished) |
| void | addScoreLine (float y, Vector &color, int score) |
Protected Attributes | |
| std::list< unsigned int > | sortedTanks_ |
| int | lastScoreValue_ |
| int | lastMoneyValue_ |
| int | lastNoPlayers_ |
Static Protected Attributes | |
| static ScoreDialog * | instance_ = 0 |
| static ScoreDialog * | instance2_ = 0 |
Private Member Functions | |
| ScoreDialog () | |
| virtual | ~ScoreDialog () |
Definition at line 27 of file ScoreDialog.h.
| ScoreDialog::ScoreDialog | ( | ) | [private] |
Definition at line 83 of file ScoreDialog.cpp.
| ScoreDialog::~ScoreDialog | ( | ) | [private, virtual] |
Definition at line 91 of file ScoreDialog.cpp.
| ScoreDialog * ScoreDialog::instance | ( | ) | [static] |
Definition at line 63 of file ScoreDialog.cpp.
References instance_.
Referenced by ClientWindowSetup::addCommonComponents().
| ScoreDialog * ScoreDialog::instance2 | ( | ) | [static] |
Definition at line 73 of file ScoreDialog.cpp.
References instance2_.
Referenced by ClientWindowSetup::setupGameWindows().
| void ScoreDialog::display | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 96 of file ScoreDialog.cpp.
References calculateScores(), GLWPanel::display(), GLWidget::getId(), GLWWindowManager::hideWindow(), GLWWindowManager::instance(), ScorchedClient::instance(), OptionsDisplay::instance(), and ClientState::StateScore.
| void ScoreDialog::windowInit | ( | const unsigned | state | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 130 of file ScoreDialog.cpp.
References GLWWindow::needCentered_.
| void ScoreDialog::draw | ( | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 135 of file ScoreDialog.cpp.
References addLine(), addScoreLine(), GLWToolTip::addToolTip(), assistsLeft, GLWColors::black, calculateScores(), GLState::DEPTH_OFF, GLFont2d::draw(), GLWWindow::draw(), S3D::formatStringBuffer(), ClientParams::getConnectedToServer(), ClientScoreHandler::getFinalScore(), GLWFont::getGameFont(), GLWFont::getGameShadowFont(), TankScore::getMoney(), ScorchedContext::getOptionsGame(), TankContainer::getPlayingTanks(), TankScore::getScore(), Tank::getScore(), TankState::getSpectator(), Tank::getState(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), Tank::getTeam(), TankColorGenerator::getTeamColor(), GLFont2d::getWidth(), TankSort::getWinningTeam(), GLWidget::h_, GLWToolTip::instance(), GLWFont::instance(), ClientParams::instance(), ClientScoreHandler::instance(), ScorchedClient::instance(), killsLeft, LANG_RESOURCE, LANG_RESOURCE_1, LANG_RESOURCE_VAR, LANG_RESOURCE_VAR_2, LANG_STRING, lastMoneyValue_, lastNoPlayers_, lastScoreValue_, lineSpacer, livesLeft, moneyLeft, nameLeft, GLWWindow::needCentered_, scoreLeft, GLWidget::setH(), snprintf, sortedTanks_, ClientState::StateGetPlayers, ClientState::StateScore, statsLeft, GLState::TEXTURE_OFF, ToolTip::ToolTipHelp, winsLeft, GLWidget::x_, and GLWidget::y_.
| void ScoreDialog::calculateScores | ( | ) | [protected] |
Definition at line 109 of file ScoreDialog.cpp.
References TankScore::getMoney(), TankContainer::getPlayingTanks(), TankScore::getScore(), Tank::getScore(), TankSort::getSortedTanksIds(), ScorchedContext::getTankContainer(), ScorchedClient::instance(), lastMoneyValue_, lastNoPlayers_, lastScoreValue_, and sortedTanks_.
| void ScoreDialog::addLine | ( | Tank * | current, | |
| float | y, | |||
| char * | rank, | |||
| bool | finished | |||
| ) | [protected] |
Definition at line 431 of file ScoreDialog.cpp.
References GLWToolTip::addToolTip(), assistsLeft, GLState::BLEND_ON, GLTexture::draw(), GLFont2d::draw(), GLFont2d::drawWidth(), S3D::formatStringBuffer(), TankScore::getAssists(), Tank::getAvatar(), Tank::getColor(), TankContainer::getCurrentDestinationId(), Tank::getDestinationId(), GLWFont::getGameFont(), TankScore::getKills(), TankState::getLives(), TankScore::getMoney(), TankAI::getName(), Target::getPlayerId(), TankScore::getRank(), TankState::getReadyState(), Target::getRenderer(), TankScore::getScore(), Tank::getScore(), TankState::getSmallStateLangString(), TankState::getSpectator(), TankState::getState(), Tank::getState(), Tank::getTankAI(), TankContainer::getTankById(), ScorchedContext::getTankContainer(), Target::getTargetName(), TankAvatar::getTexture(), TargetRendererImplTank::getTips(), TankScore::getWins(), GL_QUADS, glBegin(), glColor3f(), glColor4f(), glEnd(), glTexCoord2f(), glVertex2f(), GLWidget::h_, iconLeft, GLWFont::instance(), ScorchedServer::instance(), ClientParams::instance(), ScorchedClient::instance(), GLWToolTip::instance(), killsLeft, LANG_RESOURCE, LANG_STRING, lineSpacer, livesLeft, moneyLeft, nameLeft, rankLeft, readyLeft, scoreLeft, TankState::sNormal, TankState::SNotReady, statsLeft, GLWTankTips::tankTip, GLState::TEXTURE_ON, GLWidget::w_, winsLeft, GLWidget::x_, and GLWidget::y_.
Referenced by draw().
| void ScoreDialog::addScoreLine | ( | float | y, | |
| Vector & | color, | |||
| int | score | |||
| ) | [protected] |
Definition at line 418 of file ScoreDialog.cpp.
References GLFont2d::draw(), S3D::formatStringBuffer(), GLWFont::getGameFont(), GLWidget::h_, GLWFont::instance(), lineSpacer, scoreLeft, GLWidget::x_, and GLWidget::y_.
Referenced by draw().
ScoreDialog * ScoreDialog::instance_ = 0 [static, protected] |
ScoreDialog * ScoreDialog::instance2_ = 0 [static, protected] |
std::list<unsigned int> ScoreDialog::sortedTanks_ [protected] |
int ScoreDialog::lastScoreValue_ [protected] |
int ScoreDialog::lastMoneyValue_ [protected] |
int ScoreDialog::lastNoPlayers_ [protected] |
1.5.3