Changeset 8972 in orxonox.OLD for trunk/src/world_entities/elements
- Timestamp:
- Jul 1, 2006, 11:26:00 AM (19 years ago)
- Location:
- trunk/src/world_entities/elements
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8970 r8972 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "glgui_energywidget.h" 19 19 20 using namespace std; 20 namespace OrxGui 21 { 22 /** 23 * @brief standard constructor 24 * @todo this constructor is not jet implemented - do it 25 */ 26 GLGuiEnergyWidget::GLGuiEnergyWidget () 27 { 28 // this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget"); 29 } 21 30 22 31 23 /** 24 * standard constructor 25 * @todo this constructor is not jet implemented - do it 26 */ 27 ProtoClass::ProtoClass () 28 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 31 /* If you make a new class, what is most probably the case when you write this file 32 don't forget to: 33 1. Add the new file new_class.cc to the ./src/Makefile.am 34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS 35 36 Advanced Topics: 37 - if you want to let your object be managed via the ObjectManager make sure to read 38 the object_manager.h header comments. You will use this most certanly only if you 39 make many objects of your class, like a weapon bullet. 32 /** 33 * @brief standard deconstructor 40 34 */ 35 GLGuiEnergyWidget::~GLGuiEnergyWidget () 36 { 37 // delete what has to be deleted here 38 } 41 39 } 42 43 44 /**45 * standard deconstructor46 */47 ProtoClass::~ProtoClass ()48 {49 // delete what has to be deleted here50 } -
trunk/src/world_entities/elements/glgui_energywidget.h
r8970 r8972 1 1 /*! 2 * @file proto_class.h3 * @brief Definition of ...2 * @file glgui_energywidget.h 3 * @brief Definition of an EnergyWidget, that displays a bar and a Text 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _GLGUI_ENERGY_WIDGET_H 7 #define _GLGUI_ENERGY_WIDGET_H 8 8 9 #include "base_object.h" 9 #include "glgui_widget.h" 10 #include "glgui_bar.h" 11 #include "glgui_text.h" 10 12 11 // FORWARD DECLARATION 13 namespace OrxGui 14 { 15 16 //! A class for ... 17 class GLGuiEnergyWidget : public GLGuiWidget 18 { 19 20 public: 21 GLGuiEnergyWidget(); 22 virtual ~GLGuiEnergyWidget(); 12 23 13 24 25 private: 26 GLGuiBar bar; 27 GLGuiText text; 14 28 15 //! A class for ... 16 class ProtoClass : public BaseObject { 17 18 public: 19 ProtoClass(); 20 virtual ~ProtoClass(); 21 22 23 private: 24 25 }; 26 27 #endif /* _PROTO_CLASS_H */ 29 }; 30 } 31 #endif /* _GLGUI_ENERGY_WIDGET_H */
Note: See TracChangeset
for help on using the changeset viewer.