My Project
Player Class Reference

#include <player.hpp>

Collaboration diagram for Player:

Public Member Functions

 Player ()
 
 Player (const std::string &name, const std::string &pw)
 
bool authenticate (const std::string &pw)
 
std::array< GameState::matchType, WORD_LENGTHguess (const std::string &guess)
 
std::string getUsername ()
 
GameState getGameState ()
 
void setWord (const std::string &w)
 
void fromData (const std::string &data)
 
std::string toData ()
 

Private Attributes

friend GameState
 
std::string username
 
std::string hashedPw
 
GameState state
 

Constructor & Destructor Documentation

◆ Player() [1/2]

Player::Player ( )
inline

◆ Player() [2/2]

Player::Player ( const std::string &  name,
const std::string &  pw 
)
inline

Member Function Documentation

◆ authenticate()

bool Player::authenticate ( const std::string &  pw)
inline
Here is the caller graph for this function:

◆ fromData()

void Player::fromData ( const std::string &  data)
inline
Here is the caller graph for this function:

◆ getGameState()

GameState Player::getGameState ( )
inline
Here is the caller graph for this function:

◆ getUsername()

std::string Player::getUsername ( )
inline

◆ guess()

std::array< GameState::matchType, WORD_LENGTH > Player::guess ( const std::string &  guess)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWord()

void Player::setWord ( const std::string &  w)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toData()

std::string Player::toData ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ GameState

friend Player::GameState
private

◆ hashedPw

std::string Player::hashedPw
private

◆ state

GameState Player::state
private

◆ username

std::string Player::username
private

The documentation for this class was generated from the following file: