DC/RTS Documentation  v1.62
A Unity3D System Incorporating the Functionality of a Dungeon Crawler or Real Time Strategy System
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HealthSystem Class Reference

This Class extends the ScrollBarEssentials, simulating the behavior for a HealthSystem Game Bar More...

Inheritance diagram for HealthSystem:
ScrollBarEssentials

Public Member Functions

 HealthSystem (Rect sb_dimen, bool vbar, Texture sb_bt, Texture st, float rot)
 
void Initialize ()
 Initializes the HealthSystem with a current value and max value More...
 
void Update (int x, int y)
 Prevents the current value from exceeding the min and max value. More...
 
override void IncrimentBar (float value)
 Incriments or De-incriments the current value More...
 
- Public Member Functions inherited from ScrollBarEssentials
 ScrollBarEssentials ()
 A default initializer for a ScrollBarEssentaisl Game Bar System More...
 
 ScrollBarEssentials (Rect sb_dimen, bool vbar, Texture sb_bt, Texture st, float rot)
 Creates a ScrollBarEssentials Game Bar System More...
 
 ScrollBarEssentials (Rect sb_dimen, Rect sbv_dimen, bool vbar, Texture sb_bt, Texture st, float rot)
 Creates a ScrollBarEssentials HealthSystem Game Bar More...
 
virtual void DrawBar ()
 Draws the ScrollBarEssentials Game Bar More...
 
virtual void DoInMouseRect ()
 What to do when hovering over a Game Bar More...
 
virtual void DoOutMouseRect ()
 What to do when not hovering over a Game Bar System More...
 
float getCurrentValue ()
 The current_value of the Game Bar More...
 
float getMaxValue (float value)
 The max_value of the Game Bar More...
 
Rect getScrollBarRect ()
 The main Scroll Bar Dimensions More...
 
Rect getScrollBarTextureDimens ()
 The Scroll Bar Texture Dimensions More...
 

Additional Inherited Members

- Protected Member Functions inherited from ScrollBarEssentials
virtual float DetermineMaxVal (float value)
 Overridable function for determining a max value More...
 
void ProcessValue (float value)
 Function for changing the current_value by a value More...
 
void SetCurrentValue (float value)
 Sets the current_value to a value More...
 
- Protected Attributes inherited from ScrollBarEssentials
GUIStyle style = new GUIStyle()
 
Vector2 string_size
 
Vector2 pivotVector = Vector2.zero
 
bool MouseInRect = false
 
float current_value = 0
 
float max_value = 100
 
Rect ScrollBarDimens = new Rect()
 
Rect ScrollBarTextureDimens
 
bool VerticleBar = false
 
float texture_rotation = 0
 
Texture ScrollBarBubbleTexture
 
Texture ScrollTexture
 

Detailed Description

This Class extends the ScrollBarEssentials, simulating the behavior for a HealthSystem Game Bar

Constructor & Destructor Documentation

HealthSystem.HealthSystem ( Rect  sb_dimen,
bool  vbar,
Texture  sb_bt,
Texture  st,
float  rot 
)

Member Function Documentation

override void HealthSystem.IncrimentBar ( float  value)
virtual

Incriments or De-incriments the current value

Parameters
valueThe value to change the current value by

Reimplemented from ScrollBarEssentials.

void HealthSystem.Initialize ( )

Initializes the HealthSystem with a current value and max value

void HealthSystem.Update ( int  x,
int  y 
)

Prevents the current value from exceeding the min and max value.

Updates base ScrollBar.

Parameters
xThe X screen location
yThe Y screen location

The documentation for this class was generated from the following file: