_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#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 |
| CFont * | Font |
| int | Costs [ManaResCost+1] |
|
inline |
| 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.
FIXME : make DrawCosts more configurable.
FIXME : 'time' resource should be shown too.
|
inline |
| void CStatusLine::Set | ( | const std::string & | status | ) |
Change status line to new text.
| status | New status line information. |
| void CStatusLine::SetCosts | ( | int | mana, |
| int | food, | ||
| const int * | costs | ||
| ) |
Set costs in status line.
| mana | Mana costs. |
| food | Food costs. |
| costs | Resource costs, NULL pointer if all are zero. |
| int CStatusLine::Costs[ManaResCost+1] |
| CFont* CStatusLine::Font |
| int CStatusLine::TextX |
| int CStatusLine::TextY |
| int CStatusLine::Width |
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.