$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

CDecoVarBar Class Reference

#include <unittype.h>

Inheritance diagram for CDecoVarBar:

CDecoVar

List of all members.


Public Member Functions

unit_draw.cpp - The draw routines for units.
virtual void Draw (int x, int y, const CUnitType *type, const CVariable &var) const
 function to draw the decorations.

Public Attributes

bool IsVertical
bool SEToNW
 if true, vertical bar, else horizontal.
int Height
 (SouthEastToNorthWest), if false value 0 is on the left or up of the bar.
int Width
 Height of the bar.
bool ShowFullBackground
 Width of the bar.
char BorderSize
 if true, show background like value equal to max.
Uint32 Color
 Size of the border, 0 for no border.
Uint32 BColor
 Color of bar.

Member Function Documentation

void CDecoVarBar::Draw ( int  x,
int  y,
const CUnitType Type,
const CVariable Variable 
) const [virtual]

function to draw the decorations.

Draw bar for variables.

Parameters:
x X screen pixel position
y Y screen pixel position
unit Unit pointer
Todo:
fix color configuration.

Implements CDecoVar.


Member Data Documentation

if true, vertical bar, else horizontal.

(SouthEastToNorthWest), if false value 0 is on the left or up of the bar.

Height of the bar.

Width of the bar.

if true, show background like value equal to max.

Size of the border, 0 for no border.

Color of bar.


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.