The Battle for Wesnoth  1.15.0-dev
Public Member Functions | Private Attributes | List of all members
preferences::acquaintance Class Reference

#include <game.hpp>

Public Member Functions

 acquaintance ()
 
 acquaintance (const config &cfg)
 
 acquaintance (const std::string &nick, const std::string &status, const std::string &notes)
 
void load_from_config (const config &cfg)
 
const std::string & get_nick () const
 
const std::string & get_status () const
 
const std::string & get_notes () const
 
void save (config &cfg)
 

Private Attributes

std::string nick_
 acquaintance's MP nick More...
 
std::string status_
 status (e.g., "friend", "ignore") More...
 
std::string notes_
 notes on the acquaintance More...
 

Detailed Description

Definition at line 244 of file game.hpp.

Constructor & Destructor Documentation

◆ acquaintance() [1/3]

preferences::acquaintance::acquaintance ( )
inline

Definition at line 247 of file game.hpp.

◆ acquaintance() [2/3]

preferences::acquaintance::acquaintance ( const config cfg)
inlineexplicit

Definition at line 251 of file game.hpp.

References hotkey::load_from_config().

◆ acquaintance() [3/3]

preferences::acquaintance::acquaintance ( const std::string &  nick,
const std::string &  status,
const std::string &  notes 
)
inline

Definition at line 256 of file game.hpp.

References hotkey::load_from_config().

Member Function Documentation

◆ get_nick()

const std::string& preferences::acquaintance::get_nick ( ) const
inline

◆ get_notes()

const std::string& preferences::acquaintance::get_notes ( ) const
inline

Definition at line 271 of file game.hpp.

References save().

Referenced by gui2::dialogs::preferences_dialog::get_friends_list_row_data().

◆ get_status()

const std::string& preferences::acquaintance::get_status ( ) const
inline

◆ load_from_config()

void preferences::acquaintance::load_from_config ( const config cfg)

Definition at line 1016 of file game.cpp.

◆ save()

void preferences::acquaintance::save ( config cfg)

Definition at line 1023 of file game.cpp.

Member Data Documentation

◆ nick_

std::string preferences::acquaintance::nick_
private

acquaintance's MP nick

Definition at line 278 of file game.hpp.

◆ notes_

std::string preferences::acquaintance::notes_
private

notes on the acquaintance

Definition at line 284 of file game.hpp.

◆ status_

std::string preferences::acquaintance::status_
private

status (e.g., "friend", "ignore")

Definition at line 281 of file game.hpp.


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