$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

CDecoVarSpriteBar Class Reference

Sprite contains frame from full (left)to empty state (right). More...

#include <unittype.h>

Inheritance diagram for CDecoVarSpriteBar:

CDecoVar

List of all members.


Public Member Functions

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

Public Attributes

char NSprite

Detailed Description

Sprite contains frame from full (left)to empty state (right).

Constructor & Destructor Documentation

CDecoVarSpriteBar::CDecoVarSpriteBar (  )  [inline]


Member Function Documentation

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

function to draw the decorations.

Draw a sprite with is like a bar (several stages)

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

Implements CDecoVar.


Member Data Documentation


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.