The Battle for Wesnoth  1.13.4+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_preferences.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::stringget_nick () const
 
const std::stringget_status () const
 
const std::stringget_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 295 of file game_preferences.hpp.

Constructor & Destructor Documentation

preferences::acquaintance::acquaintance ( )
inline

Definition at line 298 of file game_preferences.hpp.

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

Definition at line 302 of file game_preferences.hpp.

References load_from_config().

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

Definition at line 307 of file game_preferences.hpp.

Member Function Documentation

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

Definition at line 320 of file game_preferences.hpp.

References nick_.

Referenced by preferences::load_acquaintances().

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

Definition at line 322 of file game_preferences.hpp.

References notes_.

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

Definition at line 321 of file game_preferences.hpp.

References status_.

Referenced by preferences::is_friend(), and preferences::is_ignored().

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

Definition at line 1188 of file game_preferences.cpp.

References nick_, notes_, and status_.

Referenced by acquaintance().

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

Definition at line 1195 of file game_preferences.cpp.

References nick_, notes_, and status_.

Member Data Documentation

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

acquaintance's MP nick

Definition at line 329 of file game_preferences.hpp.

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

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

notes on the acquaintance

Definition at line 335 of file game_preferences.hpp.

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

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

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

Definition at line 332 of file game_preferences.hpp.

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


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