Changeset 8811 in orxonox.OLD for branches/single_player_map/src/lib
- Timestamp:
- Jun 26, 2006, 5:46:42 PM (19 years ago)
- Location:
- branches/single_player_map/src/lib/util/executor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/util/executor/executor.cc
r7742 r8811 31 31 const MultiType& param2, 32 32 const MultiType& param3, 33 const MultiType& param4) 33 const MultiType& param4, 34 const MultiType& param5, 35 const MultiType& param6) 34 36 { 35 37 this->setClassID(CL_EXECUTOR, "Executor"); … … 41 43 this->defaultValue[3] = param3; 42 44 this->defaultValue[4] = param4; 45 this->defaultValue[5] = param5; 46 this->defaultValue[6] = param6; 43 47 44 48 this->paramCount = 0; … … 83 87 const MultiType& value2, 84 88 const MultiType& value3, 85 const MultiType& value4) 89 const MultiType& value4, 90 const MultiType& value5, 91 const MultiType& value6) 86 92 { 87 93 if (this == NULL) … … 94 100 value[3] = &value3; 95 101 value[4] = &value4; 96 102 value[5] = &value5; 103 value[6] = &value6; 97 104 for (unsigned int i = 0; i < this->paramCount; i++) 98 105 { -
branches/single_player_map/src/lib/util/executor/executor.h
r8408 r8811 47 47 Executor* defaultValues(const MultiType& value0 = MT_NULL, const MultiType& value1 = MT_NULL, 48 48 const MultiType& value2 = MT_NULL, const MultiType& value3 = MT_NULL, 49 const MultiType& value4 = MT_NULL); 49 const MultiType& value4 = MT_NULL, const MultiType& param5 = MT_NULL, 50 const MultiType& param6 = MT_NULL); 50 51 /** @param i the i'th defaultValue, @returns reference to the MultiType */ 51 52 inline MultiType& getDefaultValue(unsigned int i) { return defaultValue[i]; }; … … 68 69 Executor(const MultiType& param0 = MT_NULL, const MultiType& param1 = MT_NULL, 69 70 const MultiType& param2 = MT_NULL, const MultiType& param3 = MT_NULL, 70 const MultiType& param4 = MT_NULL); 71 const MultiType& param4 = MT_NULL, const MultiType& param5 = MT_NULL, 72 const MultiType& param6 = MT_NULL); 71 73 72 74 void cloning(Executor* executor) const; … … 75 77 short functorType; //!< The type of Function we've got (either static or objective). 76 78 unsigned int paramCount; //!< the count of parameters. 77 MultiType defaultValue[ 5]; //!< Default Values.79 MultiType defaultValue[7]; //!< Default Values. 78 80 }; 79 81 -
branches/single_player_map/src/lib/util/executor/functor_list.h
r8619 r8811 29 29 30 30 //! defines the maximum count of arguments function pointers might have 31 #define FUNCTOR_MAX_ARGUMENTS 531 #define FUNCTOR_MAX_ARGUMENTS 7 32 32 #include "multi_type.h" 33 33
Note: See TracChangeset
for help on using the changeset viewer.