- Timestamp:
- Apr 7, 2005, 7:37:25 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r3710 r3750 46 46 world_entities/weapon.cc \ 47 47 world_entities/projectile.cc \ 48 world_entities/satellite.cc \ 48 49 world_entities/character_attributes.cc \ 49 50 world_entities/test_gun.cc \ … … 97 98 world_entities/weapon.h \ 98 99 world_entities/projectile.h \ 100 world_entities/satellite.h \ 99 101 world_entities/character_attributes.h \ 100 102 world_entities/test_gun.h \ -
orxonox/trunk/src/Makefile.in
r3710 r3750 60 60 world_entity.$(OBJEXT) player.$(OBJEXT) environment.$(OBJEXT) \ 61 61 skysphere.$(OBJEXT) terrain.$(OBJEXT) weapon.$(OBJEXT) \ 62 projectile.$(OBJEXT) character_attributes.$(OBJEXT) \ 63 test_gun.$(OBJEXT) test_bullet.$(OBJEXT) ai.$(OBJEXT) \ 64 p_node.$(OBJEXT) null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \ 62 projectile.$(OBJEXT) satellite.$(OBJEXT) \ 63 character_attributes.$(OBJEXT) test_gun.$(OBJEXT) \ 64 test_bullet.$(OBJEXT) ai.$(OBJEXT) p_node.$(OBJEXT) \ 65 null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \ 65 66 data_tank.$(OBJEXT) graphics_engine.$(OBJEXT) light.$(OBJEXT) \ 66 67 fontset.$(OBJEXT) array.$(OBJEXT) objModel.$(OBJEXT) \ … … 96 97 @AMDEP_TRUE@ ./$(DEPDIR)/projectile.Po \ 97 98 @AMDEP_TRUE@ ./$(DEPDIR)/resource_manager.Po \ 99 @AMDEP_TRUE@ ./$(DEPDIR)/satellite.Po \ 98 100 @AMDEP_TRUE@ ./$(DEPDIR)/simple_animation.Po \ 99 101 @AMDEP_TRUE@ ./$(DEPDIR)/skysphere.Po \ … … 253 255 world_entities/weapon.cc \ 254 256 world_entities/projectile.cc \ 257 world_entities/satellite.cc \ 255 258 world_entities/character_attributes.cc \ 256 259 world_entities/test_gun.cc \ … … 304 307 world_entities/weapon.h \ 305 308 world_entities/projectile.h \ 309 world_entities/satellite.h \ 306 310 world_entities/character_attributes.h \ 307 311 world_entities/test_gun.h \ … … 439 443 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/projectile.Po@am__quote@ 440 444 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource_manager.Po@am__quote@ 445 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/satellite.Po@am__quote@ 441 446 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_animation.Po@am__quote@ 442 447 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/skysphere.Po@am__quote@ … … 628 633 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 629 634 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o projectile.obj `if test -f 'world_entities/projectile.cc'; then $(CYGPATH_W) 'world_entities/projectile.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/projectile.cc'; fi` 635 636 satellite.o: world_entities/satellite.cc 637 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT satellite.o -MD -MP -MF "$(DEPDIR)/satellite.Tpo" -c -o satellite.o `test -f 'world_entities/satellite.cc' || echo '$(srcdir)/'`world_entities/satellite.cc; \ 638 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/satellite.Tpo" "$(DEPDIR)/satellite.Po"; else rm -f "$(DEPDIR)/satellite.Tpo"; exit 1; fi 639 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/satellite.cc' object='satellite.o' libtool=no @AMDEPBACKSLASH@ 640 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/satellite.Po' tmpdepfile='$(DEPDIR)/satellite.TPo' @AMDEPBACKSLASH@ 641 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 642 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o satellite.o `test -f 'world_entities/satellite.cc' || echo '$(srcdir)/'`world_entities/satellite.cc 643 644 satellite.obj: world_entities/satellite.cc 645 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT satellite.obj -MD -MP -MF "$(DEPDIR)/satellite.Tpo" -c -o satellite.obj `if test -f 'world_entities/satellite.cc'; then $(CYGPATH_W) 'world_entities/satellite.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/satellite.cc'; fi`; \ 646 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/satellite.Tpo" "$(DEPDIR)/satellite.Po"; else rm -f "$(DEPDIR)/satellite.Tpo"; exit 1; fi 647 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/satellite.cc' object='satellite.obj' libtool=no @AMDEPBACKSLASH@ 648 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/satellite.Po' tmpdepfile='$(DEPDIR)/satellite.TPo' @AMDEPBACKSLASH@ 649 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 650 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o satellite.obj `if test -f 'world_entities/satellite.cc'; then $(CYGPATH_W) 'world_entities/satellite.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/satellite.cc'; fi` 630 651 631 652 character_attributes.o: world_entities/character_attributes.cc -
orxonox/trunk/src/defs/debug.h
r3688 r3750 65 65 #define DEBUG_MODULE_LOAD 0 66 66 67 #define DEBUG_MODULE_IMPORTER 067 #define DEBUG_MODULE_IMPORTER 2 68 68 #define DEBUG_MODULE_TRACK_MANAGER 0 69 69 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 -
orxonox/trunk/src/lib/graphics/importer/model.cc
r3657 r3750 124 124 if (counter == groupNumber) 125 125 { 126 PRINTF( 4)("Drawing model number %i named %s\n", counter, walker->name);126 PRINTF(2)("Drawing model number %i named %s\n", counter, walker->name); 127 127 glCallList (walker->listNumber); 128 128 return; -
orxonox/trunk/src/simple_animation.h
r3744 r3750 42 42 */ 43 43 typedef struct Animation { 44 44 45 WorldEntity* object; 46 Vector* lastPosition; 47 Vector* tmpVect; 48 float deltaT; 49 float localTime; 50 51 tList<KeyFrame>* frames; 45 52 KeyFrame* currentFrame; 46 53 KeyFrame* lastFrame; 47 Vector* lastPosition; 48 Vector* tmpVect;49 tList<KeyFrame>* frames; 54 55 bool bRunning; 56 50 57 animationMode animMode; 51 58 movementMode movMode; 52 bool bRunning;53 float deltaT;54 float localTime;55 59 }; 56 60 -
orxonox/trunk/src/story_entities/world.cc
r3745 r3750 30 30 #include "environment.h" 31 31 #include "skysphere.h" 32 #include "satellite.h" 32 33 #include "terrain.h" 33 34 #include "light.h" … … 442 443 443 444 444 445 /* 446 WorldEntity* a = new Environment(); 447 this->localPlayer->addChild(a); 448 a->setRelCoor(new Vector(10.0, 2.0, 1.0)); 449 this->spawn(a); 450 */ 445 WorldEntity* baseNode = new Satellite(Vector(1,0,1), 1.2); 446 this->localPlayer->addChild(baseNode); 447 baseNode->setRelCoor(new Vector(10.0, 2.0, 1.0)); 448 this->spawn(baseNode); 449 450 WorldEntity* secondNode = new Satellite(Vector(0,0,1), 1.0); 451 baseNode->addChild(secondNode); 452 secondNode->setRelCoor(new Vector(0.0, 3.0, 0.0)); 453 this->spawn(secondNode); 454 455 456 WorldEntity* thirdNode = new Satellite(Vector(0,0,1), 2.0); 457 secondNode->addChild(thirdNode); 458 thirdNode->setRelCoor(new Vector(2.0, 0.0, 0.0)); 459 this->spawn(thirdNode); 460 461 451 462 452 463 WorldEntity* b = new Environment(); … … 462 473 463 474 464 this->simpleAnimation = SimpleAnimation::getInstance();465 466 /*467 frame->position = point;468 frame->orientation = orientation;469 frame->time = time;470 frame->mode = DEFAULT_ANIMATION_MODE;471 */472 473 475 KeyFrame* f1 = new KeyFrame; 474 476 f1->position = new Vector(-1.1, 0.0, 2.6); … … 506 508 this->simpleAnimation->addKeyFrame(f4); 507 509 this->simpleAnimation->start(); 508 //this->simpleAnimation->addKeyFrame(f3);509 //this->simpleAnimation->addKeyFrame(f2);510 510 this->simpleAnimation->animatorEnd(); 511 511 -
orxonox/trunk/src/world_entities/player.cc
r3686 r3750 46 46 */ 47 47 this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN); 48 //this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN); 48 49 travelSpeed = 15.0; 49 50 velocity = new Vector(); … … 147 148 this->model->draw(); 148 149 glPopMatrix(); 150 151 this->activeWeapon->draw(); 149 152 } 150 153 -
orxonox/trunk/src/world_entities/test_gun.cc
r3710 r3750 42 42 : Weapon (parent, coordinate, direction) 43 43 { 44 this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN); 44 45 this->idleTime = 0.2f; 45 46 } … … 146 147 */ 147 148 void TestGun::draw () 148 {} 149 { 150 glMatrixMode(GL_MODELVIEW); 151 glPushMatrix(); 152 float matrix[4][4]; 153 154 /* translate */ 155 glTranslatef (this->getAbsCoor ().x, 156 this->getAbsCoor ().y, 157 this->getAbsCoor ().z); 158 /* rotate */ 159 this->getAbsDir ().matrix (matrix); 160 glMultMatrixf((float*)matrix); 161 162 this->model->draw(2); 163 glPopMatrix(); 164 } 149 165
Note: See TracChangeset
for help on using the changeset viewer.