#include <TankTeamScore.h>
Public Member Functions | |
| TankTeamScore () | |
| virtual | ~TankTeamScore () |
| void | newMatch () |
| void | newGame () |
| void | addScore (int score, int team) |
| int | getScore (int team) |
| void | setWonGame (int team) |
| int | getWonGame () |
| bool | writeMessage (NetBuffer &buffer) |
| bool | readMessage (NetBufferReader &reader) |
Protected Attributes | |
| int | scores_ [5] |
| int | wonGame_ |
Definition at line 26 of file TankTeamScore.h.
| TankTeamScore::TankTeamScore | ( | ) |
| TankTeamScore::~TankTeamScore | ( | ) | [virtual] |
Definition at line 30 of file TankTeamScore.cpp.
| void TankTeamScore::newMatch | ( | ) |
Definition at line 34 of file TankTeamScore.cpp.
References newGame(), and scores_.
Referenced by ServerResetState::enterState(), and TankTeamScore().
| void TankTeamScore::newGame | ( | ) |
Definition at line 43 of file TankTeamScore.cpp.
References wonGame_.
Referenced by ServerNewGameState::enterState(), and newMatch().
| void TankTeamScore::addScore | ( | int | score, | |
| int | team | |||
| ) |
Definition at line 48 of file TankTeamScore.cpp.
References DIALOG_ASSERT, and scores_.
Referenced by TankDamage::calculateDamage(), ServerShotFinishedState::scoreWinners(), TankResign::simulate(), and WeaponGiveScore::weaponCallback().
| int TankTeamScore::getScore | ( | int | team | ) |
Definition at line 55 of file TankTeamScore.cpp.
References DIALOG_ASSERT, and scores_.
Referenced by TankSort::getWinningTeam().
| void TankTeamScore::setWonGame | ( | int | team | ) |
Definition at line 61 of file TankTeamScore.cpp.
References DIALOG_ASSERT, and wonGame_.
Referenced by WeaponGiveWin::weaponCallback().
| int TankTeamScore::getWonGame | ( | ) |
Definition at line 67 of file TankTeamScore.cpp.
References wonGame_.
Referenced by ServerNextShotState::getRoundFinished(), and ServerShotFinishedState::scoreWinners().
| bool TankTeamScore::writeMessage | ( | NetBuffer & | buffer | ) |
| bool TankTeamScore::readMessage | ( | NetBufferReader & | reader | ) |
Definition at line 81 of file TankTeamScore.cpp.
References NetBufferReader::getFromBuffer(), and scores_.
int TankTeamScore::scores_[5] [protected] |
Definition at line 45 of file TankTeamScore.h.
Referenced by addScore(), getScore(), newMatch(), readMessage(), and writeMessage().
int TankTeamScore::wonGame_ [protected] |
Definition at line 46 of file TankTeamScore.h.
Referenced by getWonGame(), newGame(), and setWonGame().
1.5.3