SuperTuxKart
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. More...
 
void increaseDisplayCount ()
 Increases how often this message was being displayed. More...
 
int getMessageId () const
 Returns the news id. More...
 
int getDisplayCount () const
 Returns the display count. More...
 
void setDisplayCount (int n)
 Sets the display count for this message. More...
 
bool isImportant () const
 Returns if this is an important message. More...
 

Private Attributes

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

Member Function Documentation

◆ getDisplayCount()

int NewsManager::NewsMessage::getDisplayCount ( ) const
inline

Returns the display count.

◆ getMessageId()

int NewsManager::NewsMessage::getMessageId ( ) const
inline

Returns the news id.

◆ getNews()

const core::stringw& NewsManager::NewsMessage::getNews ( ) const
inline

Returns the news message.

◆ increaseDisplayCount()

void NewsManager::NewsMessage::increaseDisplayCount ( )
inline

Increases how often this message was being displayed.

◆ isImportant()

bool NewsManager::NewsMessage::isImportant ( ) const
inline

Returns if this is an important message.

◆ setDisplayCount()

void NewsManager::NewsMessage::setDisplayCount ( int  n)
inline

Sets the display count for this message.

Member Data Documentation

◆ m_display_count

int NewsManager::NewsMessage::m_display_count
private

Counts how often a message has been displayed.

◆ m_important

bool NewsManager::NewsMessage::m_important
private

True if this is an important (i.e.

popup) message.

◆ m_message_id

int NewsManager::NewsMessage::m_message_id
private

A message id used to store some information in the user config file.

◆ m_news

core::stringw NewsManager::NewsMessage::m_news
private

The actual news message.


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