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

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::CStatusLine ( )
inline

Member Function Documentation

◆ Clear()

void CStatusLine::Clear ( )

Clear status line.

◆ ClearCosts()

void CStatusLine::ClearCosts ( )

Clear costs in status line.

◆ Draw()

void CStatusLine::Draw ( )

Draw status line.

◆ DrawCosts()

void CStatusLine::DrawCosts ( )

Draw costs in status line.

Todo:

FIXME : make DrawCosts more configurable.

FIXME : 'time' resource should be shown too.

◆ Get()

const std::string& CStatusLine::Get ( ) const
inline

◆ Set()

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

Change status line to new text.

Parameters
statusNew status line information.

◆ SetCosts()

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

◆ Costs

int CStatusLine::Costs[ManaResCost+1]

◆ Font

CFont* CStatusLine::Font

◆ TextX

int CStatusLine::TextX

◆ TextY

int CStatusLine::TextY

◆ Width

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.