Changeset 5040 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Aug 16, 2005, 7:24:18 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r5010 r5040 46 46 util/loading/load_param.cc \ 47 47 util/state.cc \ 48 util/user_control.cc \ 48 49 story_entities/story_entity.cc \ 49 50 story_entities/campaign.cc \ … … 98 99 util/garbage_collector.h \ 99 100 util/state.h \ 101 util/user_control.h \ 100 102 util/resource_manager.h \ 101 103 util/loading/factory.h \ -
orxonox/trunk/src/Makefile.in
r5010 r5040 62 62 orxonox-resource_manager.$(OBJEXT) orxonox-factory.$(OBJEXT) \ 63 63 orxonox-load_param.$(OBJEXT) orxonox-state.$(OBJEXT) \ 64 orxonox-story_entity.$(OBJEXT) orxonox-campaign.$(OBJEXT) \ 65 orxonox-world.$(OBJEXT) orxonox-world_entity.$(OBJEXT) \ 66 orxonox-camera.$(OBJEXT) orxonox-player.$(OBJEXT) \ 67 orxonox-npc.$(OBJEXT) orxonox-environment.$(OBJEXT) \ 68 orxonox-skysphere.$(OBJEXT) orxonox-skybox.$(OBJEXT) \ 69 orxonox-terrain.$(OBJEXT) orxonox-satellite.$(OBJEXT) \ 64 orxonox-user_control.$(OBJEXT) orxonox-story_entity.$(OBJEXT) \ 65 orxonox-campaign.$(OBJEXT) orxonox-world.$(OBJEXT) \ 66 orxonox-world_entity.$(OBJEXT) orxonox-camera.$(OBJEXT) \ 67 orxonox-player.$(OBJEXT) orxonox-npc.$(OBJEXT) \ 68 orxonox-environment.$(OBJEXT) orxonox-skysphere.$(OBJEXT) \ 69 orxonox-skybox.$(OBJEXT) orxonox-terrain.$(OBJEXT) \ 70 orxonox-satellite.$(OBJEXT) \ 70 71 orxonox-character_attributes.$(OBJEXT) \ 71 72 orxonox-test_entity.$(OBJEXT) orxonox-weapon_manager.$(OBJEXT) \ … … 133 134 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-track_node.Po \ 134 135 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-turret.Po \ 136 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-user_control.Po \ 135 137 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-vector.Po \ 136 138 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox-weapon.Po \ … … 301 303 util/loading/load_param.cc \ 302 304 util/state.cc \ 305 util/user_control.cc \ 303 306 story_entities/story_entity.cc \ 304 307 story_entities/campaign.cc \ … … 353 356 util/garbage_collector.h \ 354 357 util/state.h \ 358 util/user_control.h \ 355 359 util/resource_manager.h \ 356 360 util/loading/factory.h \ … … 532 536 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-track_node.Po@am__quote@ 533 537 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-turret.Po@am__quote@ 538 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-user_control.Po@am__quote@ 534 539 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-vector.Po@am__quote@ 535 540 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox-weapon.Po@am__quote@ … … 777 782 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 778 783 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-state.obj `if test -f 'util/state.cc'; then $(CYGPATH_W) 'util/state.cc'; else $(CYGPATH_W) '$(srcdir)/util/state.cc'; fi` 784 785 orxonox-user_control.o: util/user_control.cc 786 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-user_control.o -MD -MP -MF "$(DEPDIR)/orxonox-user_control.Tpo" -c -o orxonox-user_control.o `test -f 'util/user_control.cc' || echo '$(srcdir)/'`util/user_control.cc; \ 787 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-user_control.Tpo" "$(DEPDIR)/orxonox-user_control.Po"; else rm -f "$(DEPDIR)/orxonox-user_control.Tpo"; exit 1; fi 788 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/user_control.cc' object='orxonox-user_control.o' libtool=no @AMDEPBACKSLASH@ 789 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-user_control.Po' tmpdepfile='$(DEPDIR)/orxonox-user_control.TPo' @AMDEPBACKSLASH@ 790 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 791 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-user_control.o `test -f 'util/user_control.cc' || echo '$(srcdir)/'`util/user_control.cc 792 793 orxonox-user_control.obj: util/user_control.cc 794 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT orxonox-user_control.obj -MD -MP -MF "$(DEPDIR)/orxonox-user_control.Tpo" -c -o orxonox-user_control.obj `if test -f 'util/user_control.cc'; then $(CYGPATH_W) 'util/user_control.cc'; else $(CYGPATH_W) '$(srcdir)/util/user_control.cc'; fi`; \ 795 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/orxonox-user_control.Tpo" "$(DEPDIR)/orxonox-user_control.Po"; else rm -f "$(DEPDIR)/orxonox-user_control.Tpo"; exit 1; fi 796 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='util/user_control.cc' object='orxonox-user_control.obj' libtool=no @AMDEPBACKSLASH@ 797 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/orxonox-user_control.Po' tmpdepfile='$(DEPDIR)/orxonox-user_control.TPo' @AMDEPBACKSLASH@ 798 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 799 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(orxonox_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o orxonox-user_control.obj `if test -f 'util/user_control.cc'; then $(CYGPATH_W) 'util/user_control.cc'; else $(CYGPATH_W) '$(srcdir)/util/user_control.cc'; fi` 779 800 780 801 orxonox-story_entity.o: story_entities/story_entity.cc -
orxonox/trunk/src/defs/class_id.h
r5039 r5040 134 134 CL_EVENT = 0x00000501, 135 135 CL_KEY_MAPPER = 0x00000502, 136 CL_CROSSHAIR = 0x0000050f, 136 CL_USER_CONTROL = 0x00000511, 137 CL_CROSSHAIR = 0x00000512, 137 138 138 139 CL_WEAPON_MANAGER = 0x00000503, -
orxonox/trunk/src/util/user_control.cc
r5038 r5040 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ … … 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "user_control.h" 19 19 20 20 using namespace std; 21 22 21 23 22 /** … … 25 24 * @todo this constructor is not jet implemented - do it 26 25 */ 27 ProtoClass::ProtoClass()26 UserControl::UserControl () 28 27 { 29 this->setClassID(CL_ PROTO_ID, "ProtoClass");28 this->setClassID(CL_USER_CONTROL, "UserControl"); 30 29 31 30 /* If you make a new class, what is most probably the case when you write this file … … 45 44 * standard deconstructor 46 45 */ 47 ProtoClass::~ProtoClass()46 UserControl::~UserControl () 48 47 { 49 48 // delete what has to be deleted here -
orxonox/trunk/src/util/user_control.h
r5038 r5040 1 1 /*! 2 * @file proto_class.h3 * @brief Definition of ...2 * @file user_control.h 3 * @brief Control of the stearing device by the User 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _USER_CONTROL_H 7 #define _USER_CONTROL_H 8 8 9 9 #include "base_object.h" 10 10 11 typedef enum ControlType 12 { 13 CONTROL_AIM_MOVE_ON_SCREEN, 14 CONTROL_AIM_STAYS_CENTERED, 15 CONTROL_AIM_SMOOTHES_CAMERA, 16 CONTROL_AIM_MOVES_SCREEN_ON_EDGE, 17 }; 18 11 19 // FORWARD DECLARATION 20 class PNode; 12 21 13 22 14 15 //! A class for ... 16 class ProtoClass : public BaseObject { 23 //! A Class the main input device uses for stearing the Ship/human/whatsoever through the level 24 class UserControl : public BaseObject { 17 25 18 26 public: 19 ProtoClass();20 virtual ~ ProtoClass();27 UserControl(); 28 virtual ~UserControl(); 21 29 30 void setAffectedObjects(PNode* camera, PNode* target); 31 void setFollowObject(PNode* follower); 32 33 void setControlType(ControlType controlType); 22 34 23 35 private: 36 ControlType controlType; 37 float speed; 38 float suspense; 39 40 PNode* camera; 41 PNode* target; 42 PNode* follower; 24 43 25 44 }; 26 45 27 #endif /* _ PROTO_CLASS_H */46 #endif /* _USER_CONTROL_H */
Note: See TracChangeset
for help on using the changeset viewer.