Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5708 in orxonox.OLD


Ignore:
Timestamp:
Nov 22, 2005, 3:31:30 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: newer data-revision

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/gentoo/orxonox-0.3.2_alpha-r5702.ebuild

    r5707 r5708  
    55inherit eutils games
    66
    7 DATA_VERSION=102
     7DATA_VERSION=106
    88
    99DESCRIPTION="orxonox is an open-source 3D-action game programmed in C++, OpenGL, OpenAL and SDL"
  • trunk/src/lib/physics/fields/field.cc

    r5671 r5708  
    6262  LoadParam(root, "magnitude", this, Field, setMagnitude)
    6363      .describe("sets the magnitude of this Field")
    64       ->defaultValues(1, 1);
     64      .defaultValues(1, 1);
    6565
    6666  LoadParam(root, "attenuation", this, Field, setAttenuation)
  • trunk/src/util/loading/load_param.cc

    r5691 r5708  
    8282 * @param ... the default values !! must be at least count parameters!!
    8383 */
    84 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...)
    85 {
    86   if (this == NULL)
    87     return NULL;
    88 
     84CLoadParam& CLoadParam::defaultValues(unsigned int count, ...)
     85{
    8986  va_list values;
    9087  va_start(values, count);
     
    9390  this->executor->defaultValues(count, values);
    9491
    95   return this;
     92  return *this;
    9693}
    9794
     
    10299 * @returns a pointer to itself.
    103100*/
    104 CLoadParam* CLoadParam::describe(const char* descriptionText)
     101CLoadParam& CLoadParam::describe(const char* descriptionText)
    105102{
    106103  if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription())
     
    108105      this->paramDesc->setDescription(descriptionText);
    109106    }
    110   return this;
     107  return *this;
    111108}
    112109
  • trunk/src/util/loading/load_param.h

    r5671 r5708  
    9191    ~CLoadParam();
    9292
    93     CLoadParam* describe(const char* descriptionText);
    94     CLoadParam* defaultValues(unsigned int count, ...);
     93    CLoadParam& describe(const char* descriptionText);
     94    CLoadParam& defaultValues(unsigned int count, ...);
     95    CLoadParam& attribute(const char* attributeName, const Executor& executor);
    9596
    9697
  • trunk/src/util/loading/load_param_description.h

    r5671 r5708  
    4545
    4646  void print() const;
     47
    4748 private:
    4849  char*         paramName;             //!< The name of the parameter.
  • trunk/src/world_entities/world_entity.cc

    r5684 r5708  
    7878  LoadParam(root, "model", this, WorldEntity, loadModel)
    7979      .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)")
    80       ->defaultValues(2, NULL, 1.0f);
     80      .defaultValues(2, NULL, 1.0f);
    8181
    8282}
     
    119119  {
    120120    PRINTF(4)("creating obb tree\n");
    121    
    122    
     121
     122
    123123    this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    124124    return true;
Note: See TracChangeset for help on using the changeset viewer.