#include <password.h>
Public Member Functions | |
| void | setUnencoded (const string &s) |
| void | setEncoded (const string &s) |
| void | setInt (int pwd) |
| bool | empty () const |
| void | reset () |
| string | toString () const |
| bool | operator== (const Password &p) const |
| bool | operator!= (const Password &p) const |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
Protected Member Functions | |
| int | encodepassword (const char *pw) const |
| string | encodedpassword2string (int pwd) const |
Definition at line 27 of file password.h.
| int Password::encodepassword | ( | const char * | pw | ) | const [protected] |
| string Password::encodedpassword2string | ( | int | pwd | ) | const [protected] |
Definition at line 73 of file password.cpp.
References strrr().
Referenced by read(), setEncoded(), setInt(), and setUnencoded().
| void Password::setUnencoded | ( | const string & | s | ) |
Definition at line 27 of file password.cpp.
References encodedpassword2string(), and encodepassword().
Referenced by StartMultiplayerGame::Apply().
| void Password::setEncoded | ( | const string & | s | ) |
Definition at line 32 of file password.cpp.
References atoi(), and encodedpassword2string().
Referenced by StartMultiplayerGame::Apply(), CGameOptions::getDefaultPassword(), and CGameOptions::getDefaultSupervisorPassword().
| void Password::setInt | ( | int | pwd | ) |
| bool Password::empty | ( | ) | const |
Definition at line 89 of file password.cpp.
Referenced by authenticateUser(), enterpassword(), k_loadmap(), and networksupervisor().
| void Password::reset | ( | ) |
| string Password::toString | ( | ) | const |
Definition at line 94 of file password.cpp.
| bool Password::operator== | ( | const Password & | p | ) | const |
| bool Password::operator!= | ( | const Password & | p | ) | const |
| void Password::read | ( | tnstream & | stream | ) |
Definition at line 100 of file password.cpp.
References encodedpassword2string(), and tnstream::readInt().
Referenced by GameMap::read().
| void Password::write | ( | tnstream & | stream | ) | const |
Definition at line 106 of file password.cpp.
References atoi(), and tnstream::writeInt().
Referenced by GameMap::write().
1.5.1