The Battle for Wesnoth  1.17.10+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 40 of file game.hpp.

Constructor & Destructor Documentation

◆ acquaintance() [1/3]

preferences::acquaintance::acquaintance ( )

Definition at line 43 of file game.hpp.

◆ acquaintance() [2/3]

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

Definition at line 47 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 52 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

◆ 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 1009 of file game.cpp.

◆ save()

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

Definition at line 1016 of file game.cpp.

Member Data Documentation

◆ nick_

std::string preferences::acquaintance::nick_

acquaintance's MP nick

Definition at line 69 of file game.hpp.

◆ notes_

std::string preferences::acquaintance::notes_

notes on the acquaintance

Definition at line 75 of file game.hpp.

◆ status_

std::string preferences::acquaintance::status_

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

Definition at line 72 of file game.hpp.

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