Changeset 1037 for code/trunk
- Timestamp:
- Apr 13, 2008, 2:24:00 PM (17 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/FindLua.cmake
r1029 r1037 17 17 FIND_PATH(Lua_INCLUDE_DIR lua.h 18 18 /usr/include/lua5.1 19 /usr/local/include/lua5.1) 19 /usr/local/include/lua5.1 20 ../libs/lua-5.1.3/src) 20 21 21 22 FIND_LIBRARY(Lua_LIBRARIES lua5.1 22 23 /usr/lib 23 /usr/local/lib) 24 /usr/local/lib 25 ../libs/lua-5.1.3/lib) 24 26 25 27 IF (NOT Lua_INCLUDE_DIR) -
code/trunk/src/orxonox/CMakeLists.txt
r1032 r1037 38 38 TARGET_LINK_LIBRARIES( orxonox 39 39 ${OGRE_LIBRARIES} 40 ${OIS_LIBRARIES}41 40 util 42 41 core -
code/trunk/src/orxonox/core/CMakeLists.txt
r1024 r1037 1 AUX_SOURCE_DIRECTORY(tolua TOLUA_SRC_FILES) 2 1 3 SET( CORE_SRC_FILES 4 ${TOLUA_SRC_FILES} 2 5 OrxonoxClass.cc 3 6 BaseObject.cc … … 7 10 InputHandler.cc 8 11 InputManager.cc 12 InputEventListener.cc 9 13 MetaObjectList.cc 10 14 ConfigValueContainer.cc … … 27 31 TARGET_LINK_LIBRARIES( core 28 32 util 33 29 34 ${Lua_LIBRARIES} 35 ${OIS_LIBRARIES} 30 36 ) -
code/trunk/src/orxonox/core/Script.cc
r1034 r1037 31 31 #include <map> 32 32 33 #include " ../core/CoreIncludes.h"33 #include "CoreIncludes.h" 34 34 35 35 extern "C" { … … 38 38 } 39 39 40 #include " util/tolua/tolua++.h"41 #include " util/tolua/tolua_bind.h"40 #include "tolua/tolua++.h" 41 #include "tolua/tolua_bind.h" 42 42 43 43 namespace orxonox -
code/trunk/src/orxonox/core/tolua/tolua_bind.cc
r1021 r1037 14 14 TOLUA_API int tolua_orxonox_open (lua_State* tolua_S); 15 15 16 #include "../ ../orxonox/core/Script.h"16 #include "../Script.h" 17 17 18 18 /* function to register type */ -
code/trunk/src/orxonox/objects/SpaceShip.h
r1024 r1037 82 82 float mouseY_; 83 83 84 int emitterRate_;84 float emitterRate_; 85 85 }; 86 86 } -
code/trunk/src/orxonox/particle/ParticleInterface.cc
r1021 r1037 69 69 { 70 70 //Abgleichen der anderen Emitter an die Variabeln 71 for (int i= 1; i < numberOfEmitters_; i++) {71 for (int i=0; i < numberOfEmitters_; i++) { 72 72 particleSystem_->getEmitter(i)->setColour( colour_ ); 73 73 particleSystem_->getEmitter(i)->setTimeToLive( distance_ ); … … 84 84 } 85 85 86 void ParticleInterface::setRate( int r)86 void ParticleInterface::setRate(float r) 87 87 { 88 88 rate_ = r; … … 127 127 Vector3 ParticleInterface::getPositionOfEmitter ( int emitterNr ) 128 128 { 129 return particleSystem_->getEmitter( 0)->getPosition();129 return particleSystem_->getEmitter(emitterNr)->getPosition(); 130 130 } 131 131 -
code/trunk/src/orxonox/particle/ParticleInterface.h
r1021 r1037 48 48 void setVelocity( Real v ); 49 49 50 inline int getRate()50 inline float getRate() 51 51 { return rate_; }; 52 void setRate( int r );52 void setRate( float r ); 53 53 54 54 inline Real getDistance() … … 71 71 Real distance_; 72 72 Real velocity_; 73 int rate_;73 float rate_; 74 74 ColourValue colour_; 75 75 int numberOfEmitters_; -
code/trunk/src/util/CMakeLists.txt
r1024 r1037 2 2 3 3 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES) 4 AUX_SOURCE_DIRECTORY(tolua TOLUA_SRC_FILES)5 4 6 5 SET (UTIL_SRC_FILES … … 13 12 MultiTypeMath.cc 14 13 ${TINYXML_SRC_FILES} 15 ${TOLUA_SRC_FILES}16 14 ) 17 15
Note: See TracChangeset
for help on using the changeset viewer.