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

#include <replay.hpp>

Public Member Functions

const std::string & text () const
 
const std::string & nick () const
 
const std::string & color () const
 
const std::time_t & time () const
 
 chat_msg (const config &cfg)
 
virtual ~chat_msg ()
 

Private Attributes

std::string color_
 
std::string nick_
 
std::string text_
 
std::time_t time_
 

Detailed Description

Definition at line 34 of file replay.hpp.

Constructor & Destructor Documentation

◆ chat_msg()

chat_msg::chat_msg ( const config cfg)

Definition at line 143 of file replay.cpp.

References color_, team::get_side_highlight_pango(), get_time(), LOG_REPLAY, nick_, and time_.

Referenced by time().

◆ ~chat_msg()

chat_msg::~chat_msg ( )
virtual

Definition at line 174 of file replay.cpp.

Referenced by time().

Member Function Documentation

◆ color()

const std::string& chat_msg::color ( ) const
inline

Definition at line 38 of file replay.hpp.

References color_.

◆ nick()

const std::string& chat_msg::nick ( ) const
inline

Definition at line 37 of file replay.hpp.

References nick_.

◆ text()

const std::string& chat_msg::text ( ) const
inline

Definition at line 36 of file replay.hpp.

References text_.

◆ time()

const std::time_t& chat_msg::time ( ) const
inline

Definition at line 39 of file replay.hpp.

References chat_msg(), time_, and ~chat_msg().

Member Data Documentation

◆ color_

std::string chat_msg::color_
private

Definition at line 43 of file replay.hpp.

Referenced by chat_msg(), and color().

◆ nick_

std::string chat_msg::nick_
private

Definition at line 44 of file replay.hpp.

Referenced by chat_msg(), and nick().

◆ text_

std::string chat_msg::text_
private

Definition at line 45 of file replay.hpp.

Referenced by text().

◆ time_

std::time_t chat_msg::time_
private

Definition at line 46 of file replay.hpp.

Referenced by chat_msg(), and time().


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