#include <PlayersOnline.hpp>
PlayersOnline::PlayersOnline |
( |
int |
playerCount | ) |
|
|
inline |
PlayersOnline::~PlayersOnline |
( |
| ) |
|
string PlayersOnline::authPlayer |
( |
std::string |
login, |
|
|
std::string |
password |
|
) |
| |
Auth player on Server. Get all game data from SQLite On failed auth (if user is not in a table) throw InvalidLoginOrPassword On fulled server (maxPlayers == currentPlayers) throw ServerFullException
- Warning
- Can throw exception! Must be in try{}catch{} block
- Parameters
-
login | user login |
password | user password |
- Returns
- session string
vector< Player * > PlayersOnline::getOnlinePlayers |
( |
| ) |
const |
Player * PlayersOnline::getPlayerBySession |
( |
const std::string & |
session | ) |
const |
bool PlayersOnline::logout |
( |
const std::string & |
session | ) |
|
Remove user from user list and save that in SQLite
- Parameters
-
- Returns
int PlayersOnline::playersOnline |
( |
| ) |
const |
|
inline |
void PlayersOnline::registerPlayer |
( |
std::string |
login, |
|
|
std::string |
password |
|
) |
| |
The documentation for this class was generated from the following files: