Changeset 4838 in orxonox.OLD for orxonox/trunk/src/proto
- Timestamp:
- Jul 12, 2005, 12:09:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/proto
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/proto/proto_class.cc
r4744 r4838 22 22 23 23 /** 24 \briefstandard constructor25 \todo this constructor is not jet implemented - do it24 * standard constructor 25 * @todo this constructor is not jet implemented - do it 26 26 */ 27 27 ProtoClass::ProtoClass () … … 43 43 44 44 /** 45 \brief standard deconstructor 46 45 * standard deconstructor 47 46 */ 48 47 ProtoClass::~ProtoClass () -
orxonox/trunk/src/proto/proto_class.h
r3955 r4838 1 /*! 2 \file proto_class.h 3 \brief Definition of ... 4 1 /*! 2 * @file proto_class.h 3 * @brief Definition of ... 5 4 */ 6 5 … … 10 9 #include "base_object.h" 11 10 12 // FORWARD DE FINITION11 // FORWARD DECLARATION 13 12 14 13 -
orxonox/trunk/src/proto/proto_singleton.cc
r4744 r4838 22 22 23 23 /** 24 \briefstandard constructor25 */24 * standard constructor 25 */ 26 26 ProtoSingleton::ProtoSingleton () 27 27 { … … 42 42 43 43 /** 44 \briefthe singleton reference to this class45 */44 * the singleton reference to this class 45 */ 46 46 ProtoSingleton* ProtoSingleton::singletonRef = NULL; 47 47 48 48 /** 49 \brief standard deconstructor 50 51 */ 49 @brief standard deconstructor 50 */ 52 51 ProtoSingleton::~ProtoSingleton () 53 52 { 54 53 ProtoSingleton::singletonRef = NULL; 55 56 54 } -
orxonox/trunk/src/proto/proto_singleton.h
r4519 r4838 1 /*! 2 \file proto_singleton.h 3 \brief Definition of the ... singleton Class 4 1 /*! 2 * @file proto_singleton.h 3 * @brief Definition of the ... singleton Class 5 4 */ 6 5 … … 17 16 public: 18 17 virtual ~ProtoSingleton(void); 19 /** \returns a Pointer to the only object of this Class */18 /** @returns a Pointer to the only object of this Class */ 20 19 inline static ProtoSingleton* getInstance(void) { if (!singletonRef) singletonRef = new ProtoSingleton(); return singletonRef; }; 21 20 -
orxonox/trunk/src/proto/proto_world_entity.cc
r4483 r4838 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 22 22 using namespace std; 23 23 24 /**25 \brief standard constructor26 27 */28 ProtoWorldEntity::ProtoWorldEntity ()29 {30 this->init();31 }32 24 33 25 /** 34 \briefconstructs and loads a ProtoWorldEntity from a XML-element35 \param root the XML-element to load from36 */26 * constructs and loads a ProtoWorldEntity from a XML-element 27 * @param root the XML-element to load from 28 */ 37 29 ProtoWorldEntity::ProtoWorldEntity(const TiXmlElement* root) 38 30 { 39 31 this->init(); 40 this->loadParams(root); 32 if (root != NULL) 33 this->loadParams(root); 41 34 } 42 35 43 36 44 37 /** 45 \briefstandard deconstructor46 */47 ProtoWorldEntity::~ProtoWorldEntity () 38 * standard deconstructor 39 */ 40 ProtoWorldEntity::~ProtoWorldEntity () 48 41 { 49 42 … … 51 44 52 45 /** 53 \brief initializes the ProtoWorldEntity 54 */ 46 * initializes the ProtoWorldEntity 47 * @todo change this to what you wish 48 */ 55 49 void ProtoWorldEntity::init(void) 56 50 { 51 this->setClassID(CL_PROTO_WORLD_ENTITY, ) 57 52 ... 58 53 } 59 54 60 55 /** 61 \brief loads a ProtoWorldEntity from a XML-element 62 \param root the XML-element to load from 63 */ 56 * loads a ProtoWorldEntity from a XML-element 57 * @param root the XML-element to load from 58 * @todo make the class Loadable 59 */ 64 60 void ProtoWorldEntity::loadParams(const TiXmlElement* root) 65 61 { 62 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 66 63 static_cast<WorldEntity*>(this)->loadParam(root); 67 64 … … 71 68 72 69 /** 73 \briefadvances the ProtoWorldEntity about time seconds74 \param time the Time to step75 */70 * advances the ProtoWorldEntity about time seconds 71 * @param time the Time to step 72 */ 76 73 ProtoWorldEntity::tick(float time) 77 74 { … … 80 77 81 78 /** 82 \briefdraws this worldEntity83 */79 * draws this worldEntity 80 */ 84 81 void ProtoWorldEntity::draw () 85 { 82 { 86 83 glMatrixMode(GL_MODELVIEW); 87 84 glPushMatrix(); 88 85 float matrix[4][4]; 89 86 90 87 /* translate */ 91 glTranslatef (this->getAbsCoor ().x, 92 this->getAbsCoor ().y, 93 88 glTranslatef (this->getAbsCoor ().x, 89 this->getAbsCoor ().y, 90 this->getAbsCoor ().z); 94 91 /* rotate */ 95 92 this->getAbsDir().matrix(matrix); -
orxonox/trunk/src/proto/proto_world_entity.h
r4483 r4838 1 /*! 2 \file proto_world_entity.h 3 4 description 1 /*! 2 * @file proto_world_entity.h 3 * @brief description 5 4 */ 6 5 … … 11 10 12 11 //! A Class to ... 13 class ProtoWorldEntity : public WorldEntity 12 class ProtoWorldEntity : public WorldEntity 14 13 { 15 14 16 15 public: 17 ProtoWorldEntity(); 18 ProtoWorldEntity(const TiXmlElement* root); 16 ProtoWorldEntity(const TiXmlElement* root = NULL); 19 17 virtual ~ProtoWorldEntity(); 20 18 21 19 void loadParams(const TiXmlElement* root); 22 20 void init(); 23 21 24 22 virtual void draw(); 25 23 virtual void tick(float time);
Note: See TracChangeset
for help on using the changeset viewer.