_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
MessagesDisplay Class Reference

Public Member Functions

 MessagesDisplay ()
 
void ToggleShowMessages ()
 

mainscr.cpp - The main screen.

void UpdateMessages ()
 
void AddUniqueMessage (const char *s)
 
void DrawMessages ()
 
void CleanMessages ()
 
void ShiftMessages ()
 
void AddMessage (const char *msg)
 
bool CheckRepeatMessage (const char *msg)
 

Constructor & Destructor Documentation

◆ MessagesDisplay()

MessagesDisplay::MessagesDisplay ( )
inline

Member Function Documentation

◆ AddMessage()

void MessagesDisplay::AddMessage ( const char *  msg)
protected

Adds message to the stack

Parameters
msgMessage to add.

◆ AddUniqueMessage()

void MessagesDisplay::AddUniqueMessage ( const char *  s)

Add a new message to display only if it differs from the preceding one.

◆ CheckRepeatMessage()

bool MessagesDisplay::CheckRepeatMessage ( const char *  msg)
protected

Check if this message repeats

Parameters
msgMessage to check.
Returns
true to skip this message

◆ CleanMessages()

void MessagesDisplay::CleanMessages ( )

Clean up messages.

◆ DrawMessages()

void MessagesDisplay::DrawMessages ( )

Draw message(s).

Todo:
FIXME: make message font configurable.

◆ ShiftMessages()

void MessagesDisplay::ShiftMessages ( )
protected

Shift messages array by one.

◆ ToggleShowMessages()

void MessagesDisplay::ToggleShowMessages ( )
inline

◆ UpdateMessages()

void MessagesDisplay::UpdateMessages ( )

Update messages

Todo:
FIXME: make scroll speed configurable.

The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.