00001 /* 00002 * File: HealthBar.h 00003 * Author: chris 00004 * 00005 * Created on April 29, 2013, 10:34 AM 00006 */ 00007 00008 #ifndef HEALTHBAR_H 00009 #define HEALTHBAR_H 00010 #include "Rect.h" 00011 00017 class HealthBar 00018 { 00019 public: 00026 HealthBar(Ogre::ManualObject* mObj, float percent, bool startOnLeft); 00027 HealthBar(const HealthBar& orig); 00028 virtual ~HealthBar(); 00029 00030 Rect* fullBar; 00031 Rect* emptyBar; 00032 float percent; 00033 bool startOnLeft; /* Switch for if the bar "fills/empties" from left-to-right, or right-to-left. */ 00034 00042 void Draw(Ogre::Vector3 pos); 00043 00049 void Hide() 00050 { 00051 fullBar->Hide(); 00052 emptyBar->Hide(); 00053 }; 00054 00060 void ClearVertices(); 00061 private: 00062 00063 }; 00064 00065 #endif /* HEALTHBAR_H */ 00066