- Timestamp:
- Mar 21, 2005, 3:26:26 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r3610 r3618 47 47 world_entities/projectile.cc \ 48 48 world_entities/character_attributes.cc \ 49 world_entities/test_gun.cc \ 49 50 ai/ai.cc \ 50 51 lib/coord/p_node.cc \ … … 95 96 world_entities/projectile.h \ 96 97 world_entities/character_attributes.h \ 98 world_entities/test_gun.h \ 97 99 ai/ai.h \ 98 100 network/synchronisable.h \ -
orxonox/trunk/src/Makefile.in
r3610 r3618 61 61 terrain.$(OBJEXT) primitive.$(OBJEXT) weapon.$(OBJEXT) \ 62 62 projectile.$(OBJEXT) character_attributes.$(OBJEXT) \ 63 ai.$(OBJEXT) p_node.$(OBJEXT) null_parent.$(OBJEXT) \ 64 helper_parent.$(OBJEXT) data_tank.$(OBJEXT) \ 65 graphics_engine.$(OBJEXT) light.$(OBJEXT) fontset.$(OBJEXT) \ 66 array.$(OBJEXT) objModel.$(OBJEXT) model.$(OBJEXT) \ 67 material.$(OBJEXT) texture.$(OBJEXT) base_entity.$(OBJEXT) \ 68 base_object.$(OBJEXT) ini_parser.$(OBJEXT) list.$(OBJEXT) \ 69 vector.$(OBJEXT) curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) 63 test_gun.$(OBJEXT) ai.$(OBJEXT) p_node.$(OBJEXT) \ 64 null_parent.$(OBJEXT) helper_parent.$(OBJEXT) \ 65 data_tank.$(OBJEXT) graphics_engine.$(OBJEXT) light.$(OBJEXT) \ 66 fontset.$(OBJEXT) array.$(OBJEXT) objModel.$(OBJEXT) \ 67 model.$(OBJEXT) material.$(OBJEXT) texture.$(OBJEXT) \ 68 base_entity.$(OBJEXT) base_object.$(OBJEXT) \ 69 ini_parser.$(OBJEXT) list.$(OBJEXT) vector.$(OBJEXT) \ 70 curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) 70 71 orxonox_OBJECTS = $(am_orxonox_OBJECTS) 71 72 orxonox_LDADD = $(LDADD) … … 95 96 @AMDEP_TRUE@ ./$(DEPDIR)/skysphere.Po \ 96 97 @AMDEP_TRUE@ ./$(DEPDIR)/story_entity.Po ./$(DEPDIR)/terrain.Po \ 97 @AMDEP_TRUE@ ./$(DEPDIR)/te xture.Po \98 @AMDEP_TRUE@ ./$(DEPDIR)/test_gun.Po ./$(DEPDIR)/texture.Po \ 98 99 @AMDEP_TRUE@ ./$(DEPDIR)/track_manager.Po \ 99 100 @AMDEP_TRUE@ ./$(DEPDIR)/track_node.Po ./$(DEPDIR)/vector.Po \ … … 249 250 world_entities/projectile.cc \ 250 251 world_entities/character_attributes.cc \ 252 world_entities/test_gun.cc \ 251 253 ai/ai.cc \ 252 254 lib/coord/p_node.cc \ … … 297 299 world_entities/projectile.h \ 298 300 world_entities/character_attributes.h \ 301 world_entities/test_gun.h \ 299 302 ai/ai.h \ 300 303 network/synchronisable.h \ … … 427 430 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/story_entity.Po@am__quote@ 428 431 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/terrain.Po@am__quote@ 432 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_gun.Po@am__quote@ 429 433 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/texture.Po@am__quote@ 430 434 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/track_manager.Po@am__quote@ … … 642 646 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 643 647 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o character_attributes.obj `if test -f 'world_entities/character_attributes.cc'; then $(CYGPATH_W) 'world_entities/character_attributes.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/character_attributes.cc'; fi` 648 649 test_gun.o: world_entities/test_gun.cc 650 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_gun.o -MD -MP -MF "$(DEPDIR)/test_gun.Tpo" -c -o test_gun.o `test -f 'world_entities/test_gun.cc' || echo '$(srcdir)/'`world_entities/test_gun.cc; \ 651 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/test_gun.Tpo" "$(DEPDIR)/test_gun.Po"; else rm -f "$(DEPDIR)/test_gun.Tpo"; exit 1; fi 652 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/test_gun.cc' object='test_gun.o' libtool=no @AMDEPBACKSLASH@ 653 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/test_gun.Po' tmpdepfile='$(DEPDIR)/test_gun.TPo' @AMDEPBACKSLASH@ 654 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 655 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_gun.o `test -f 'world_entities/test_gun.cc' || echo '$(srcdir)/'`world_entities/test_gun.cc 656 657 test_gun.obj: world_entities/test_gun.cc 658 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_gun.obj -MD -MP -MF "$(DEPDIR)/test_gun.Tpo" -c -o test_gun.obj `if test -f 'world_entities/test_gun.cc'; then $(CYGPATH_W) 'world_entities/test_gun.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/test_gun.cc'; fi`; \ 659 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/test_gun.Tpo" "$(DEPDIR)/test_gun.Po"; else rm -f "$(DEPDIR)/test_gun.Tpo"; exit 1; fi 660 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='world_entities/test_gun.cc' object='test_gun.obj' libtool=no @AMDEPBACKSLASH@ 661 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/test_gun.Po' tmpdepfile='$(DEPDIR)/test_gun.TPo' @AMDEPBACKSLASH@ 662 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 663 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_gun.obj `if test -f 'world_entities/test_gun.cc'; then $(CYGPATH_W) 'world_entities/test_gun.cc'; else $(CYGPATH_W) '$(srcdir)/world_entities/test_gun.cc'; fi` 644 664 645 665 ai.o: ai/ai.cc -
orxonox/trunk/src/world_entities/player.cc
r3608 r3618 192 192 void Player::fire() 193 193 { 194 if( this->bFire)194 if( this->bFire) 195 195 { 196 196 if(this->activeWeapon != NULL) 197 197 this->activeWeapon->fire(); 198 198 } 199 if( this->bWeaponChange)199 if( this->bWeaponChange && this->weapons->getSize() > 1) 200 200 { 201 Weapon* w = this->weapons->enumerate(); 201 PRINTF(1)("changing the weapon of the player: deactivate old, activate new\n"); 202 this->activeWeapon->deactivate(); 203 this->weapons->enumerate(); 202 204 this->activeWeapon = this->weapons->nextElement(this->activeWeapon); 205 this->activeWeapon->activate(); 203 206 } 204 207 } -
orxonox/trunk/src/world_entities/primitive.h
r3616 r3618 1 /*! 2 \primitive.h 3 \brief representing a primitive body in the world: cube, sphere, cylinder etc... 4 */ 5 6 1 7 #ifndef _PRIMITIVE_H 2 8 #define _PRIMITIVE_H … … 34 40 GLUquadricObj* object; //!< the object to be rendered 35 41 Material* material; //!< A Material for the SkySphere. 36 pForm form; 37 char* textureName; 38 float size; 39 int segments; 42 pForm form; //!< the chooesen form for the entity 43 char* textureName; //!< if there is a texture. this is the name for it 44 float size; //!< size of the object, from [0..1] 45 int segments; //!< segment count 40 46 41 47 void glDrawCube(); -
orxonox/trunk/src/world_entities/projectile.cc
r3579 r3618 18 18 19 19 #include "projectile.h" 20 #include "stdincl.h" 20 21 21 #include "world_entity.h" 22 #include "objModel.h" 23 #include "primitive.h" 22 24 #include "vector.h" 23 #include "objModel.h"24 25 25 26 using namespace std; … … 31 32 Projectile::Projectile () : WorldEntity() 32 33 { 33 this->model = new OBJModel(""); 34 //this->model = new OBJModel(""); 35 this->projectileModel = new Primitive(P_SPHERE); 34 36 } 35 37 -
orxonox/trunk/src/world_entities/projectile.h
r3583 r3618 9 9 #include "world_entity.h" 10 10 11 class Primitive; 11 12 12 13 class Projectile : public WorldEntity … … 26 27 private: 27 28 //physical attriutes like: force, speed, acceleration etc. 29 Primitive* projectileModel; 28 30 29 31 }; -
orxonox/trunk/src/world_entities/weapon.h
r3583 r3618 57 57 bool isActive(void); 58 58 59 v irtual void setWeaponIdleTime(float time);60 virtualfloat getWeaponIdleTime(void);61 virtualbool hasWeaponIdleTimeElapsed(void);59 void setWeaponIdleTime(float time); 60 float getWeaponIdleTime(void); 61 bool hasWeaponIdleTimeElapsed(void); 62 62 63 63 virtual void fire(void);
Note: See TracChangeset
for help on using the changeset viewer.