Changeset 4975 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Aug 9, 2005, 12:23:07 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r4963 r4975 40 40 util/animation/animation3d.cc \ 41 41 util/animation/animation_player.cc \ 42 util/object_manager.cc \43 42 util/fast_factory.cc \ 44 43 util/garbage_collector.cc \ … … 94 93 util/animation/animation3d.h \ 95 94 util/animation/animation_player.h \ 96 util/object_manager.h \97 95 util/fast_factory.h \ 98 96 util/garbage_collector.h \ -
orxonox/trunk/src/Makefile.in
r4963 r4975 58 58 orxonox-animation.$(OBJEXT) orxonox-animation3d.$(OBJEXT) \ 59 59 orxonox-animation_player.$(OBJEXT) \ 60 orxonox-object_manager.$(OBJEXT) \61 60 orxonox-fast_factory.$(OBJEXT) \ 62 61 orxonox-garbage_collector.$(OBJEXT) \ … … 110 109 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-load_param.Po \ 111 110 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-null_parent.Po \ 112 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-object_manager.Po \113 111 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-orxonox.Po \ 114 112 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-p_node.Po \ … … 294 292 util/animation/animation3d.cc \ 295 293 util/animation/animation_player.cc \ 296 util/object_manager.cc \297 294 util/fast_factory.cc \ 298 295 util/garbage_collector.cc \ … … 348 345 util/animation/animation3d.h \ 349 346 util/animation/animation_player.h \ 350 util/object_manager.h \351 347 util/fast_factory.h \ 352 348 util/garbage_collector.h \ … … 507 503 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-load_param.Po@am__quote@ 508 504 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-null_parent.Po@am__quote@ 509 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-object_manager.Po@am__quote@510 505 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-orxonox.Po@am__quote@ 511 506 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-p_node.Po@am__quote@ … … 678 673 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 679 674 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-animation_player.obj `if test -f 'util/animation/animation_player.cc'; then $(CYGPATH_W) 'util/animation/animation_player.cc'; else $(CYGPATH_W) '$(srcdir)/util/animation/animation_player.cc'; fi` 680 681 orxonox-object_manager.o: util/object_manager.cc682 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-object_manager.o -MD -MP -MF "$(DEPDIR)/orxonox-object_manager.Tpo" -c -o orxonox-object_manager.o `test -f 'util/object_manager.cc' || echo '$(srcdir)/'`util/object_manager.cc; \683 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-object_manager.Tpo" "$(DEPDIR)/orxonox-object_manager.Po"; else rm -f "$(DEPDIR)/orxonox-object_manager.Tpo"; exit 1; fi684 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/object_manager.cc' object='orxonox-object_manager.o' libtool=no @AMDEPBACKSLASH@685 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-object_manager.Po' tmpdepfile='$(DEPDIR)/orxonox-object_manager.TPo' @AMDEPBACKSLASH@686 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@687 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-object_manager.o `test -f 'util/object_manager.cc' || echo '$(srcdir)/'`util/object_manager.cc688 689 orxonox-object_manager.obj: util/object_manager.cc690 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-object_manager.obj -MD -MP -MF "$(DEPDIR)/orxonox-object_manager.Tpo" -c -o orxonox-object_manager.obj `if test -f 'util/object_manager.cc'; then $(CYGPATH_W) 'util/object_manager.cc'; else $(CYGPATH_W) '$(srcdir)/util/object_manager.cc'; fi`; \691 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-object_manager.Tpo" "$(DEPDIR)/orxonox-object_manager.Po"; else rm -f "$(DEPDIR)/orxonox-object_manager.Tpo"; exit 1; fi692 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/object_manager.cc' object='orxonox-object_manager.obj' libtool=no @AMDEPBACKSLASH@693 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-object_manager.Po' tmpdepfile='$(DEPDIR)/orxonox-object_manager.TPo' @AMDEPBACKSLASH@694 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@695 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-object_manager.obj `if test -f 'util/object_manager.cc'; then $(CYGPATH_W) 'util/object_manager.cc'; else $(CYGPATH_W) '$(srcdir)/util/object_manager.cc'; fi`696 675 697 676 orxonox-fast_factory.o: util/fast_factory.cc -
orxonox/trunk/src/orxonox.cc
r4946 r4975 37 37 #include "sound_engine.h" 38 38 #include "resource_manager.h" 39 #include "object_manager.h"40 39 #include "cd_engine.h" 41 40 #include "text_engine.h" … … 85 84 delete SoundEngine::getInstance(); 86 85 delete ResourceManager::getInstance(); // deletes the Resource Manager 87 delete ObjectManager::getInstance();88 86 delete TextEngine::getInstance(); 89 87 delete Factory::getFirst(); … … 258 256 TextEngine::getInstance(); 259 257 260 PRINT(3)("initializing ObjectManager\n");261 ObjectManager::getInstance();262 258 CDEngine::getInstance(); 263 259 -
orxonox/trunk/src/util/garbage_collector.cc
r4942 r4975 23 23 24 24 #include "list.h" 25 #include "object_manager.h"26 25 27 26 using namespace std; -
orxonox/trunk/src/world_entities/player.cc
r4969 r4975 56 56 } 57 57 58 59 /** 60 * destructs the player, deletes alocated memory 61 */ 62 Player::~Player () 63 { 64 /* do not delete the weapons, they are contained in the pnode tree 65 and will be deleted there. 66 this only frees the memory allocated to save the list. 67 */ 68 delete this->weaponMan; 58 /** 59 * loads a Players information from a specified file. 60 * @param fileName the name of the File to load the player from (absolute path) 61 */ 62 Player::Player(const char* fileName) 63 { 64 this->init(); 65 TiXmlDocument doc(fileName); 66 67 if(!doc.LoadFile()) 68 { 69 PRINTF(2)("Loading file %s failed for player.\n", fileName); 70 return; 71 } 72 73 this->loadParams(doc.RootElement()); 69 74 } 70 75 … … 96 101 97 102 this->weaponMan->changeWeaponConfig(0); 103 } 104 105 /** 106 * destructs the player, deletes alocated memory 107 */ 108 Player::~Player () 109 { 110 /* do not delete the weapons, they are contained in the pnode tree 111 and will be deleted there. 112 this only frees the memory allocated to save the list. 113 */ 114 delete this->weaponMan; 98 115 } 99 116 -
orxonox/trunk/src/world_entities/player.h
r4954 r4975 29 29 public: 30 30 Player(); 31 Player(const char* fileName); 31 32 Player(const TiXmlElement* root); 32 33 virtual ~Player(); -
orxonox/trunk/src/world_entities/weapons/projectile.h
r4972 r4975 23 23 #include "world_entity.h" 24 24 #include "vector.h" 25 26 class ParticleEmitter;27 25 28 26 class Projectile : public WorldEntity … … 53 51 54 52 protected: 55 56 53 // energy 57 54 float energyMin; … … 65 62 66 63 Vector velocity; //!< velocity of the projectile. 67 68 ParticleEmitter* emitter; //!< For special effects each Projectile has an emitter.69 64 }; 70 65 -
orxonox/trunk/src/world_entities/weapons/weapon.h
r4972 r4975 71 71 /** 72 72 * This is used as a container for all the different kinds of weapons that may exist 73 * 74 * Weapons have certain states, and actions, that can inflict them. 75 * ex. Action WA_SHOOT leeds to State WS_SHOOTING. 76 * each action has a sound connected to it, 77 * each state a time and an animation. 73 78 */ 74 79 class Weapon : public WorldEntity
Note: See TracChangeset
for help on using the changeset viewer.