Changeset 5679 in orxonox.OLD for branches/world_entities/src
- Timestamp:
- Nov 21, 2005, 10:06:50 PM (19 years ago)
- Location:
- branches/world_entities/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/Makefile.am
r5621 r5679 62 62 world_entities/weapons/test_gun.cc \ 63 63 world_entities/weapons/turret.cc \ 64 world_entities/weapons/ground_turret.cc \ 64 65 world_entities/weapons/aiming_turret.cc \ 65 66 world_entities/weapons/cannon.cc \ -
branches/world_entities/src/Makefile.in
r5621 r5679 65 65 orxonox-weapon.$(OBJEXT) orxonox-projectile.$(OBJEXT) \ 66 66 orxonox-test_gun.$(OBJEXT) orxonox-turret.$(OBJEXT) \ 67 orxonox-ground_turret.$(OBJEXT) \ 67 68 orxonox-aiming_turret.$(OBJEXT) orxonox-cannon.$(OBJEXT) \ 68 69 orxonox-test_bullet.$(OBJEXT) orxonox-rocket.$(OBJEXT) \ … … 258 259 world_entities/weapons/test_gun.cc \ 259 260 world_entities/weapons/turret.cc \ 261 world_entities/weapons/ground_turret.cc \ 260 262 world_entities/weapons/aiming_turret.cc \ 261 263 world_entities/weapons/cannon.cc \ … … 412 414 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-crosshair.Po@am__quote@ 413 415 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-environment.Po@am__quote@ 416 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-ground_turret.Po@am__quote@ 414 417 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-laser.Po@am__quote@ 415 418 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-laser_power_up.Po@am__quote@ … … 743 746 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 744 747 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-turret.obj `if test -f 'world_entities/weapons/turret.cc'; then $(CYGPATH_W) 'world_entities/weapons/turret.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/weapons/turret.cc'; fi` 748 749 orxonox-ground_turret.o: world_entities/weapons/ground_turret.cc 750 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-ground_turret.o -MD -MP -MF "$(DEPDIR)/orxonox-ground_turret.Tpo" -c -o orxonox-ground_turret.o `test -f 'world_entities/weapons/ground_turret.cc' || echo '$(srcdir)/'`world_entities/weapons/ground_turret.cc; \ 751 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-ground_turret.Tpo" "$(DEPDIR)/orxonox-ground_turret.Po"; else rm -f "$(DEPDIR)/orxonox-ground_turret.Tpo"; exit 1; fi 752 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/weapons/ground_turret.cc' object='orxonox-ground_turret.o' libtool=no @AMDEPBACKSLASH@ 753 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 754 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-ground_turret.o `test -f 'world_entities/weapons/ground_turret.cc' || echo '$(srcdir)/'`world_entities/weapons/ground_turret.cc 755 756 orxonox-ground_turret.obj: world_entities/weapons/ground_turret.cc 757 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-ground_turret.obj -MD -MP -MF "$(DEPDIR)/orxonox-ground_turret.Tpo" -c -o orxonox-ground_turret.obj `if test -f 'world_entities/weapons/ground_turret.cc'; then $(CYGPATH_W) 'world_entities/weapons/ground_turret.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/weapons/ground_turret.cc'; fi`; \ 758 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-ground_turret.Tpo" "$(DEPDIR)/orxonox-ground_turret.Po"; else rm -f "$(DEPDIR)/orxonox-ground_turret.Tpo"; exit 1; fi 759 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/weapons/ground_turret.cc' object='orxonox-ground_turret.obj' libtool=no @AMDEPBACKSLASH@ 760 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 761 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-ground_turret.obj `if test -f 'world_entities/weapons/ground_turret.cc'; then $(CYGPATH_W) 'world_entities/weapons/ground_turret.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/weapons/ground_turret.cc'; fi` 745 762 746 763 orxonox-aiming_turret.o: world_entities/weapons/aiming_turret.cc -
branches/world_entities/src/defs/class_id.h
r5621 r5679 142 142 CL_LASER = 0x00000242, 143 143 CL_BOMB = 0x00000243, 144 144 CL_GROUND_TURRET = 0x00000244, 145 145 146 146 // gamePlay (range from 0x00000500 0x000005ff) -
branches/world_entities/src/world_entities/Makefile.am
r5463 r5679 25 25 weapons/rocket.cc \ 26 26 weapons/laser.cc \ 27 weapons/ground_turret.cc \ 27 28 weapons/crosshair.cc \ 28 29 power_ups/power_up.cc \ -
branches/world_entities/src/world_entities/weapons/ground_turret.cc
r5596 r5679 46 46 void GroundTurret::init() 47 47 { 48 this->setClassID(CL_PROTO_WORLD_ENTITY, "GroundTurret"); 49 50 /** 51 * @todo: Write CL_PROTO_WORLD_ENTITY INTO THE src/defs/class_id.h (your own definition) 52 */ 48 this->setClassID(CL_GROUND_TURRET, "GroundTurret"); 53 49 54 50 } … … 63 59 { 64 60 // all the clases this Entity is directly derived from must be called in this way, to load all settings. 65 static_cast<WorldEntity*>(this)->loadParam(root);61 // static_cast<WorldEntity*>(this)->loadParam(root); 66 62 67 63 … … 76 72 * @param time the Time to step 77 73 */ 78 GroundTurret::tick(float time)79 {80 81 }74 //GroundTurret::tick(float time) 75 //{ 76 // 77 //} 82 78 83 79 /** … … 98 94 glMultMatrixf((float*)matrix); 99 95 100 if (model)101 model->draw();96 // if (model) 97 // model->draw(); 102 98 glPopMatrix(); 103 99 } -
branches/world_entities/src/world_entities/weapons/ground_turret.h
r5596 r5679 7 7 #define _GROUND_TURRET_H 8 8 9 #include "w orld_entity.h"9 #include "weapon.h" 10 10 11 11 //! A Class to ... 12 class GroundTurret : public W orldEntity12 class GroundTurret : public Weapon 13 13 { 14 14 15 15 public: 16 ProtoWorldEntity(const TiXmlElement* root = NULL);17 virtual ~ ProtoWorldEntity();16 GroundTurret(const TiXmlElement* root = NULL); 17 virtual ~GroundTurret(); 18 18 19 19 void loadParams(const TiXmlElement* root); … … 25 25 26 26 virtual void draw() const; 27 virtual void tick(float time);27 // virtual void tick(float time); 28 28 virtual void collidesWith (WorldEntity* entity, const Vector& location); 29 29
Note: See TracChangeset
for help on using the changeset viewer.