The Battle for Wesnoth  1.13.11+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 250 of file game.hpp.

Constructor & Destructor Documentation

preferences::acquaintance::acquaintance ( )

Definition at line 253 of file game.hpp.

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

Definition at line 257 of file game.hpp.

References load_from_config().

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

Definition at line 262 of file game.hpp.

Member Function Documentation

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

Definition at line 277 of file game.hpp.

References notes_.

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

const std::string& preferences::acquaintance::get_status ( ) const
void preferences::acquaintance::load_from_config ( const config cfg)

Definition at line 1035 of file game.cpp.

References nick_, notes_, and status_.

Referenced by acquaintance().

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

Definition at line 1042 of file game.cpp.

References nick_, notes_, and status_.

Member Data Documentation

std::string preferences::acquaintance::nick_

acquaintance's MP nick

Definition at line 284 of file game.hpp.

Referenced by get_nick(), load_from_config(), and save().

std::string preferences::acquaintance::notes_

notes on the acquaintance

Definition at line 290 of file game.hpp.

Referenced by get_notes(), load_from_config(), and save().

std::string preferences::acquaintance::status_

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

Definition at line 287 of file game.hpp.

Referenced by get_status(), load_from_config(), and save().

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