SuperTuxKart
Public Member Functions | Private Attributes | List of all members
NewsManager::NewsMessage Class Reference

Public Member Functions

 NewsMessage (const core::stringw &m, int id, const std::string &date="", const std::string &link="", bool important=false)
 
const core::stringw & getNews () const
 Returns the news message.
 
const std::string & getDate () const
 Returns the date of the news.
 
const std::string & getLink () const
 Returns the link of the news.
 
void increaseDisplayCount ()
 Increases how often this message was being displayed.
 
int getMessageId () const
 Returns the news id.
 
int getDisplayCount () const
 Returns the display count.
 
void setDisplayCount (int n)
 Sets the display count for this message.
 
bool isImportant () const
 Returns if this is an important message.
 
bool operator< (NewsMessage other) const
 For sorting the news.
 

Private Attributes

core::stringw m_news
 The actual news message.
 
std::string m_date
 Additional data.
 
std::string m_link
 
int m_message_id
 A message id used to store some information in the user config file.
 
int m_display_count
 Counts how often a message has been displayed.
 
bool m_important
 True if this is an important (i.e. More...
 

Member Data Documentation

◆ m_important

bool NewsManager::NewsMessage::m_important
private

True if this is an important (i.e.

popup) message.


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