- Timestamp:
- Jul 12, 2005, 12:09:04 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 1 added
- 15 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r4826 r4838 68 68 lib/graphics/light.cc \ 69 69 lib/graphics/text_engine.cc \ 70 lib/graphics/render2D/element_2D.cc \ 70 71 lib/lang/base_object.cc \ 71 72 lib/lang/class_list.cc \ -
orxonox/trunk/src/Makefile.in
r4826 r4838 75 75 orxonox-null_parent.$(OBJEXT) \ 76 76 orxonox-graphics_engine.$(OBJEXT) orxonox-light.$(OBJEXT) \ 77 orxonox-text_engine.$(OBJEXT) orxonox-base_object.$(OBJEXT) \ 78 orxonox-class_list.$(OBJEXT) orxonox-ini_parser.$(OBJEXT) \ 79 orxonox-substring.$(OBJEXT) orxonox-vector.$(OBJEXT) \ 80 orxonox-curve.$(OBJEXT) orxonox-glmenu_imagescreen.$(OBJEXT) \ 77 orxonox-text_engine.$(OBJEXT) orxonox-element_2D.$(OBJEXT) \ 78 orxonox-base_object.$(OBJEXT) orxonox-class_list.$(OBJEXT) \ 79 orxonox-ini_parser.$(OBJEXT) orxonox-substring.$(OBJEXT) \ 80 orxonox-vector.$(OBJEXT) orxonox-curve.$(OBJEXT) \ 81 orxonox-glmenu_imagescreen.$(OBJEXT) \ 81 82 orxonox-benchmark.$(OBJEXT) 82 83 orxonox_OBJECTS = $(am_orxonox_OBJECTS) … … 96 97 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-crosshair.Po \ 97 98 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-curve.Po \ 99 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-element_2D.Po \ 98 100 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-environment.Po \ 99 101 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-factory.Po \ … … 316 318 lib/graphics/light.cc \ 317 319 lib/graphics/text_engine.cc \ 320 lib/graphics/render2D/element_2D.cc \ 318 321 lib/lang/base_object.cc \ 319 322 lib/lang/class_list.cc \ … … 479 482 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-crosshair.Po@am__quote@ 480 483 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-curve.Po@am__quote@ 484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-element_2D.Po@am__quote@ 481 485 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-environment.Po@am__quote@ 482 486 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-factory.Po@am__quote@ … … 1138 1142 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1139 1143 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-text_engine.obj `if test -f 'lib/graphics/text_engine.cc'; then $(CYGPATH_W) 'lib/graphics/text_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/text_engine.cc'; fi` 1144 1145 orxonox-element_2D.o: lib/graphics/render2D/element_2D.cc 1146 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2D.o -MD -MP -MF "$(DEPDIR)/orxonox-element_2D.Tpo" -c -o orxonox-element_2D.o `test -f 'lib/graphics/render2D/element_2D.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2D.cc; \ 1147 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2D.Tpo" "$(DEPDIR)/orxonox-element_2D.Po"; else rm -f "$(DEPDIR)/orxonox-element_2D.Tpo"; exit 1; fi 1148 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2D.cc' object='orxonox-element_2D.o' libtool=no @AMDEPBACKSLASH@ 1149 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2D.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2D.TPo' @AMDEPBACKSLASH@ 1150 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1151 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2D.o `test -f 'lib/graphics/render2D/element_2D.cc' || echo '$(srcdir)/'`lib/graphics/render2D/element_2D.cc 1152 1153 orxonox-element_2D.obj: lib/graphics/render2D/element_2D.cc 1154 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-element_2D.obj -MD -MP -MF "$(DEPDIR)/orxonox-element_2D.Tpo" -c -o orxonox-element_2D.obj `if test -f 'lib/graphics/render2D/element_2D.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2D.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2D.cc'; fi`; \ 1155 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-element_2D.Tpo" "$(DEPDIR)/orxonox-element_2D.Po"; else rm -f "$(DEPDIR)/orxonox-element_2D.Tpo"; exit 1; fi 1156 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/graphics/render2D/element_2D.cc' object='orxonox-element_2D.obj' libtool=no @AMDEPBACKSLASH@ 1157 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-element_2D.Po' tmpdepfile='$(DEPDIR)/orxonox-element_2D.TPo' @AMDEPBACKSLASH@ 1158 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1159 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-element_2D.obj `if test -f 'lib/graphics/render2D/element_2D.cc'; then $(CYGPATH_W) 'lib/graphics/render2D/element_2D.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/render2D/element_2D.cc'; fi` 1140 1160 1141 1161 orxonox-base_object.o: lib/lang/base_object.cc -
orxonox/trunk/src/defs/class_id.h
r4837 r4838 68 68 CL_EVENT_LISTENER = 0x20000000, 69 69 70 CL_ELEMENT_2D = 0x40000000, 71 70 72 // subsuper-classes 71 73 CL_MASK_SUBSUPER_CLASS = 0x00fff000, … … 78 80 CL_PROJECTILE = 0x00110000, 79 81 CL_WEAPON = 0x00120000, 82 83 // subsuper-classes derivations taken : 1, a. << THIS IS A LIST OF ALL THE DCL_MASK_SUBSUPERCLASS_ID's taken 80 84 81 85 // lowest level classes … … 145 149 CL_BV_TREE_NODE = 0x00a02613, 146 150 CL_OBB_TREE = 0x00a04614, 147 //! @todo !!!!THIS IS A HACK!!!!! DELETE THESE extensions.148 151 CL_OBB_TREE_NODE = 0x00a08615, 149 152 CL_BOUNDING_VOLUME = 0x00a10616, -
orxonox/trunk/src/lib/event/event_handler.cc
r4836 r4838 72 72 if( this->listeners[i][j] != NULL) 73 73 { 74 PRINTF(2)(" Someone forgot to unsubscribe an EventListener!\n");74 PRINTF(2)("forgot to unsubscribe an EventListener %s!\n");//, this->listeners[i][j]->getName()); 75 75 } 76 76 } -
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4836 r4838 58 58 { 59 59 // delete what has to be deleted here 60 EventHandler::getInstance()->unsubscribe(this);61 60 } 62 61 -
orxonox/trunk/src/lib/graphics/render2D/element_2D.cc
r4837 r4838 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ … … 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "element_2D.h" 19 19 20 20 using namespace std; … … 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 ProtoClass::ProtoClass()27 Element2D::Element2D () 28 28 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");29 this->setClassID(CL_ELEMENT_2D, "Element2D"); 30 30 31 31 /* If you make a new class, what is most probably the case when you write this file … … 43 43 44 44 /** 45 \brief standard deconstructor 46 45 * standard deconstructor 47 46 */ 48 ProtoClass::~ProtoClass()47 Element2D::~Element2D () 49 48 { 50 49 // delete what has to be deleted here -
orxonox/trunk/src/lib/graphics/render2D/element_2D.h
r4837 r4838 1 /*! 2 \file proto_class.h 3 \brief Definition of ... 4 1 /*! 2 * @file element_2D.h 3 * @brief Definition of the 2D elements rendered on top through the GraphicsEngine 5 4 */ 6 5 7 #ifndef _ PROTO_CLASS_H8 #define _ PROTO_CLASS_H6 #ifndef _ELEMENT_2D_H 7 #define _ELEMENT_2D_H 9 8 10 9 #include "base_object.h" 11 10 12 // FORWARD DEFINITION 13 14 11 // FORWARD DECLARATION 15 12 16 13 //! A class for ... 17 class ProtoClass: public BaseObject {14 class Element2D : public BaseObject { 18 15 19 16 public: 20 ProtoClass();21 virtual ~ ProtoClass();17 Element2D(); 18 virtual ~Element2D(); 22 19 23 20 … … 26 23 }; 27 24 28 #endif /* _ PROTO_CLASS_H */25 #endif /* _ELEMENT_2D_H */ -
orxonox/trunk/src/lib/graphics/render2D/render_2d.cc
r4837 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/lib/graphics/render2D/render_2d.h
r4837 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_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); -
orxonox/trunk/src/story_entities/world.cc
r4837 r4838 169 169 170 170 /** 171 171 * remove the World from memory 172 172 173 173 delete everything explicitly, that isn't contained in the parenting tree! 174 174 things contained in the tree are deleted automaticaly 175 */175 */ 176 176 World::~World () 177 177 { … … 179 179 180 180 ParticleEngine::getInstance()->debug(); 181 182 EventHandler::getInstance()->unsubscribe(this->localPlayer);183 181 184 182 delete WorldInterface::getInstance(); -
orxonox/trunk/src/util/loading/game_loader.cc
r4836 r4838 54 54 delete this->currentCampaign; 55 55 this->currentCampaign = NULL; 56 this->eventHandler->unsubscribe(this, ES_ALL);57 56 } 58 57 -
orxonox/trunk/src/world_entities/camera.cc
r4836 r4838 57 57 Camera::~Camera() 58 58 { 59 EventHandler::getInstance()->unsubscribe(this);60 59 } 61 60 -
orxonox/trunk/src/world_entities/weapons/crosshair.cc
r4834 r4838 52 52 53 53 // delete what has to be deleted here 54 EventHandler::getInstance()->unsubscribe(this);55 54 56 55 GraphicsEngine::showMouse(true);
Note: See TracChangeset
for help on using the changeset viewer.