mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
mElite
HudLoadBar.h
Go to the documentation of this file.
1
6
#pragma once
7
9
14
class
HudLoadBar
{
15
public
:
16
HudLoadBar
(
void
);
17
HudLoadBar
(
float
min
,
float
max
,
float
current );
18
~HudLoadBar
(
void
);
19
20
void
draw
();
21
void
draw
(
int
x
,
int
y
,
int
width,
int
height );
22
void
setCurrent
(
float
current );
23
void
setMax
(
float
max );
24
void
setMin
(
float
min );
25
void
setSlopePixel
(
int
pixel );
26
private
:
27
void
update();
28
float
m_max;
29
float
m_min;
30
float
m_current;
31
int
m_slope;
32
33
// help variables
34
float
offset;
35
float
isNegative;
36
float
currentRange;
37
float
currentPercentage;
38
float
currentDifference;
39
};
Generated on Tue Oct 2 2012 14:38:37 for mElite by
1.8.2