- Timestamp:
- Aug 9, 2005, 12:48:44 PM (19 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/Makefile.am
r4962 r4976 5 5 EXTRA_DIST = CODING-STANDARDS \ 6 6 IDEAS \ 7 NEWS \ 7 8 doc/CREDITS \ 8 9 doc/doxyconf/build \ -
orxonox/trunk/Makefile.in
r4962 r4976 184 184 EXTRA_DIST = CODING-STANDARDS \ 185 185 IDEAS \ 186 NEWS \ 186 187 doc/CREDITS \ 187 188 doc/doxyconf/build \ -
orxonox/trunk/src/Makefile.am
r4975 r4976 52 52 world_entities/camera.cc \ 53 53 world_entities/player.cc \ 54 world_entities/npc.cc \ 54 55 world_entities/environment.cc \ 55 56 world_entities/skysphere.cc \ -
orxonox/trunk/src/Makefile.in
r4975 r4976 65 65 orxonox-world.$(OBJEXT) orxonox-world_entity.$(OBJEXT) \ 66 66 orxonox-camera.$(OBJEXT) orxonox-player.$(OBJEXT) \ 67 orxonox- environment.$(OBJEXT) orxonox-skysphere.$(OBJEXT) \68 orxonox-sky box.$(OBJEXT) orxonox-terrain.$(OBJEXT) \69 orxonox- satellite.$(OBJEXT) \67 orxonox-npc.$(OBJEXT) orxonox-environment.$(OBJEXT) \ 68 orxonox-skysphere.$(OBJEXT) orxonox-skybox.$(OBJEXT) \ 69 orxonox-terrain.$(OBJEXT) orxonox-satellite.$(OBJEXT) \ 70 70 orxonox-character_attributes.$(OBJEXT) \ 71 71 orxonox-test_entity.$(OBJEXT) orxonox-weapon_manager.$(OBJEXT) \ … … 108 108 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-light.Po \ 109 109 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-load_param.Po \ 110 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-npc.Po \ 110 111 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-null_parent.Po \ 111 112 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-orxonox.Po \ … … 304 305 world_entities/camera.cc \ 305 306 world_entities/player.cc \ 307 world_entities/npc.cc \ 306 308 world_entities/environment.cc \ 307 309 world_entities/skysphere.cc \ … … 502 504 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-light.Po@am__quote@ 503 505 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-load_param.Po@am__quote@ 506 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-npc.Po@am__quote@ 504 507 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-null_parent.Po@am__quote@ 505 508 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-orxonox.Po@am__quote@ … … 865 868 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 866 869 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-player.obj `if test -f 'world_entities/player.cc'; then $(CYGPATH_W) 'world_entities/player.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/player.cc'; fi` 870 871 orxonox-npc.o: world_entities/npc.cc 872 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-npc.o -MD -MP -MF "$(DEPDIR)/orxonox-npc.Tpo" -c -o orxonox-npc.o `test -f 'world_entities/npc.cc' || echo '$(srcdir)/'`world_entities/npc.cc; \ 873 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-npc.Tpo" "$(DEPDIR)/orxonox-npc.Po"; else rm -f "$(DEPDIR)/orxonox-npc.Tpo"; exit 1; fi 874 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/npc.cc' object='orxonox-npc.o' libtool=no @AMDEPBACKSLASH@ 875 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-npc.Po' tmpdepfile='$(DEPDIR)/orxonox-npc.TPo' @AMDEPBACKSLASH@ 876 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 877 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-npc.o `test -f 'world_entities/npc.cc' || echo '$(srcdir)/'`world_entities/npc.cc 878 879 orxonox-npc.obj: world_entities/npc.cc 880 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-npc.obj -MD -MP -MF "$(DEPDIR)/orxonox-npc.Tpo" -c -o orxonox-npc.obj `if test -f 'world_entities/npc.cc'; then $(CYGPATH_W) 'world_entities/npc.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/npc.cc'; fi`; \ 881 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-npc.Tpo" "$(DEPDIR)/orxonox-npc.Po"; else rm -f "$(DEPDIR)/orxonox-npc.Tpo"; exit 1; fi 882 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/npc.cc' object='orxonox-npc.obj' libtool=no @AMDEPBACKSLASH@ 883 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-npc.Po' tmpdepfile='$(DEPDIR)/orxonox-npc.TPo' @AMDEPBACKSLASH@ 884 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 885 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-npc.obj `if test -f 'world_entities/npc.cc'; then $(CYGPATH_W) 'world_entities/npc.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/npc.cc'; fi` 867 886 868 887 orxonox-environment.o: world_entities/environment.cc -
orxonox/trunk/src/ai/ai.h
r3544 r4976 3 3 #define _AI_H 4 4 5 #include "data_tank.h"6 5 7 6 class AI { -
orxonox/trunk/src/story_entities/world.cc
r4969 r4976 71 71 72 72 #include "cd_engine.h" 73 73 #include "npc.h" 74 74 75 75 using namespace std; … … 521 521 PhysicsEngine::getInstance()->debug(); 522 522 523 for(int i = 0; i < 100; i++) 524 { 525 WorldEntity* tmp = new NPC(); 526 tmp->setAbsCoor(((float)rand()/RAND_MAX) * 2000, 40+ (float)rand()/RAND_MAX*30, ((float)rand()/RAND_MAX -.5) *500); 527 this->spawn(tmp); 528 529 530 } 531 532 523 533 524 534 ClassList::debug(); -
orxonox/trunk/src/world_entities/npc.cc
r4597 r4976 20 20 21 21 #include "ai.h" 22 #include "data_tank.h"23 22 24 23 #include "npc.h" … … 27 26 28 27 29 NPC::NPC() : WorldEntity()28 NPC::NPC() 30 29 { 31 30 this->setClassID(CL_NPC, "NPC"); 32 31 hasDied = 0; 32 33 this->loadModel("models/bolido.obj"); 33 34 } 34 35 … … 59 60 60 61 61 void NPC::addAI(AI* ai)62 {}63 64 void NPC::paint()65 {66 //cout << "WorldEntity::WorldEntity();" << endl;67 /* fix: died flag approach is very stupid, just to show @ convention */68 if( hasDied == 0 ) {69 glPushMatrix();70 glTranslatef(xCor, yCor, 3.0);71 //glScalef(1.0, 3.0, 1.0);72 glutWireSphere(1.0, 10, 10);73 glPopMatrix();74 }75 }76 77 void NPC::drawNPC()78 {79 80 }81 82 62 83 63 /* define the reaction, if the ship is been hit */
Note: See TracChangeset
for help on using the changeset viewer.