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

CContentTypeCompleteBar Class Reference

#include <ui.h>

Inheritance diagram for CContentTypeCompleteBar:

CContentType

List of all members.


Public Member Functions

 CContentTypeCompleteBar ()
mainscr.cpp - The main screen.
virtual void Draw (const CUnit &unit, CFont *defaultfont) const

Public Attributes

int Index
int Width
 Index of the variable to show, -1 if not.
int Height
 Width of the bar.
char Border
 Height of the bar.
char Color
 True for additional border.

Detailed Description

Show bar.

Constructor & Destructor Documentation

CContentTypeCompleteBar::CContentTypeCompleteBar (  )  [inline]


Member Function Documentation

void CContentTypeCompleteBar::Draw ( const CUnit unit,
CFont defaultfont 
) const [virtual]

Draw life bar of a unit using selected variable. Placed under icons on top-panel.

Parameters:
unit Pointer to unit.
defaultfont FIXME: docu
Todo:
Color and percent value Parametrisation.

Implements CContentType.


Member Data Documentation

Index of the variable to show, -1 if not.

Width of the bar.

Height of the bar.

True for additional border.


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