SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
NewsManager::NewsMessage Class Reference

Public Member Functions

 NewsMessage (const core::stringw &m, int id, bool important=false)
 
const core::stringw & getNews () const
 Returns the news message.
 
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.
 

Private Attributes

core::stringw m_news
 The actual news message.
 
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.
 

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: