Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1037 for code/trunk/src


Ignore:
Timestamp:
Apr 13, 2008, 2:24:00 PM (17 years ago)
Author:
landauf
Message:

moved tolua from util to core because of circular dependencies
reverted some bugfixes in ParticleInterface

Location:
code/trunk/src
Files:
8 edited
1 moved

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/CMakeLists.txt

    r1032 r1037  
    3838TARGET_LINK_LIBRARIES( orxonox
    3939  ${OGRE_LIBRARIES}
    40   ${OIS_LIBRARIES}
    4140  util
    4241  core
  • code/trunk/src/orxonox/core/CMakeLists.txt

    r1024 r1037  
     1AUX_SOURCE_DIRECTORY(tolua TOLUA_SRC_FILES)
     2
    13SET( CORE_SRC_FILES
     4  ${TOLUA_SRC_FILES}
    25  OrxonoxClass.cc
    36  BaseObject.cc
     
    710  InputHandler.cc
    811  InputManager.cc
     12  InputEventListener.cc
    913  MetaObjectList.cc
    1014  ConfigValueContainer.cc
     
    2731TARGET_LINK_LIBRARIES( core
    2832  util
     33
    2934  ${Lua_LIBRARIES}
     35  ${OIS_LIBRARIES}
    3036)
  • code/trunk/src/orxonox/core/Script.cc

    r1034 r1037  
    3131#include <map>
    3232
    33 #include "../core/CoreIncludes.h"
     33#include "CoreIncludes.h"
    3434
    3535extern "C" {
     
    3838}
    3939
    40 #include "util/tolua/tolua++.h"
    41 #include "util/tolua/tolua_bind.h"
     40#include "tolua/tolua++.h"
     41#include "tolua/tolua_bind.h"
    4242
    4343namespace orxonox
  • code/trunk/src/orxonox/core/tolua/tolua_bind.cc

    r1021 r1037  
    1414TOLUA_API int  tolua_orxonox_open (lua_State* tolua_S);
    1515
    16 #include "../../orxonox/core/Script.h"
     16#include "../Script.h"
    1717
    1818/* function to register type */
  • code/trunk/src/orxonox/objects/SpaceShip.h

    r1024 r1037  
    8282            float mouseY_;
    8383
    84             int emitterRate_;
     84            float emitterRate_;
    8585    };
    8686}
  • code/trunk/src/orxonox/particle/ParticleInterface.cc

    r1021 r1037  
    6969  {
    7070    //Abgleichen der anderen Emitter an die Variabeln
    71     for (int i=1; i < numberOfEmitters_; i++) {
     71    for (int i=0; i < numberOfEmitters_; i++) {
    7272      particleSystem_->getEmitter(i)->setColour( colour_ );
    7373      particleSystem_->getEmitter(i)->setTimeToLive( distance_ );
     
    8484  }
    8585
    86   void ParticleInterface::setRate(int r)
     86  void ParticleInterface::setRate(float r)
    8787  {
    8888    rate_ = r;
     
    127127  Vector3 ParticleInterface::getPositionOfEmitter ( int emitterNr )
    128128  {
    129     return particleSystem_->getEmitter(0)->getPosition();
     129    return particleSystem_->getEmitter(emitterNr)->getPosition();
    130130  }
    131131
  • code/trunk/src/orxonox/particle/ParticleInterface.h

    r1021 r1037  
    4848    void setVelocity( Real v );
    4949
    50     inline int getRate()
     50    inline float getRate()
    5151      { return rate_; };
    52     void setRate( int r );
     52    void setRate( float r );
    5353
    5454    inline Real getDistance()
     
    7171    Real distance_;
    7272    Real velocity_;
    73     int rate_;
     73    float rate_;
    7474    ColourValue colour_;
    7575    int numberOfEmitters_;
  • code/trunk/src/util/CMakeLists.txt

    r1024 r1037  
    22
    33AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
    4 AUX_SOURCE_DIRECTORY(tolua TOLUA_SRC_FILES)
    54
    65SET (UTIL_SRC_FILES
     
    1312  MultiTypeMath.cc
    1413  ${TINYXML_SRC_FILES}
    15   ${TOLUA_SRC_FILES}
    1614)
    1715
Note: See TracChangeset for help on using the changeset viewer.