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 248 of file game.hpp.

Constructor & Destructor Documentation

◆ acquaintance() [1/3]

preferences::acquaintance::acquaintance ( )

Definition at line 251 of file game.hpp.

◆ acquaintance() [2/3]

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

Definition at line 255 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 

Definition at line 260 of file game.hpp.

References hotkey::load_from_config().

Member Function Documentation

◆ get_nick()

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

◆ get_notes()

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

Definition at line 275 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

◆ load_from_config()

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

Definition at line 1030 of file game.cpp.

◆ save()

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

Definition at line 1037 of file game.cpp.

Member Data Documentation

◆ nick_

std::string preferences::acquaintance::nick_

acquaintance's MP nick

Definition at line 282 of file game.hpp.

◆ notes_

std::string preferences::acquaintance::notes_

notes on the acquaintance

Definition at line 288 of file game.hpp.

◆ status_

std::string preferences::acquaintance::status_

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

Definition at line 285 of file game.hpp.

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