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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CStatusLine Class Reference

#include <statusline.h>

Public Member Functions

 CStatusLine ()
 
const std::string & Get () const
 
statusline.cpp - The statusline.
void Draw ()
 
void DrawCosts ()
 
void Set (const std::string &status)
 
void SetCosts (int mana, int food, const int *costs)
 
void Clear ()
 
void ClearCosts ()
 

Public Attributes

int Width
 
int TextX
 
int TextY
 
CFontFont
 
int Costs [ManaResCost+1]
 

Constructor & Destructor Documentation

CStatusLine::CStatusLine ( )
inline

Member Function Documentation

void CStatusLine::Clear ( )

Clear status line.

void CStatusLine::ClearCosts ( )

Clear costs in status line.

void CStatusLine::Draw ( )

Draw status line.

void CStatusLine::DrawCosts ( )

Draw costs in status line.

Todo:

FIXME : make DrawCosts more configurable.

FIXME : 'time' resource should be shown too.

const std::string& CStatusLine::Get ( ) const
inline
void CStatusLine::Set ( const std::string &  status)

Change status line to new text.

Parameters
statusNew status line information.
void CStatusLine::SetCosts ( int  mana,
int  food,
const int *  costs 
)

Set costs in status line.

Parameters
manaMana costs.
foodFood costs.
costsResource costs, NULL pointer if all are zero.

Member Data Documentation

int CStatusLine::Costs[ManaResCost+1]
CFont* CStatusLine::Font
int CStatusLine::TextX
int CStatusLine::TextY
int CStatusLine::Width

The documentation for this class was generated from the following files:
(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.