Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7198 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Mar 8, 2006, 2:30:19 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new Default Values… they now too are in MultiType instead of (count, …) or (count, va_arg) style

Location:
trunk/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/water.cc

    r7193 r7198  
    7171  LoadParam(root, "size", this, Water, setSize)
    7272  .describe("the size of the WaterSurface")
    73   .defaultValues(2, 1.0f, 1.0f);
     73  .defaultValues(1.0f, 1.0f);
    7474
    7575  LoadParam(root, "resolution", this, Water, setResolution)
    7676  .describe("sets the resolution of the water surface")
    77   .defaultValues(2, 10, 10);
     77  .defaultValues(10, 10);
    7878
    7979  LoadParam(root, "height", this, Water, setHeight)
    8080  .describe("the height of the Waves")
    81   .defaultValues(1, 0.5f);
     81  .defaultValues(0.5f);
    8282}
    8383
  • trunk/src/world_entities/spawning_point.cc

    r7193 r7198  
    7676  LoadParam(root, "frequency", this, SpawningPoint, setSpawningFrequency)
    7777  .describe("sets the frequency of the spawning point")
    78   .defaultValues(1, 1.0f);
     78  .defaultValues(1.0f);
    7979
    8080
     
    8282  LoadParam(root, "randomseed", this, SpawningPoint, setPositionSeed)
    8383      .describe("sets the random position seed (variance in the spawning location around the position)")
    84       .defaultValues(1, 0.0f);
     84      .defaultValues(0.0f);
    8585
    8686  /* now load the seed */
    8787/*  LoadParam(root, "classid", this, SpawningPoint, setSpawningEntity)
    8888      .describe("sets the class id of the entity to spawn")
    89       .defaultValues(1, CL_WORLD_ENTITY);*/
     89      .defaultValues(CL_WORLD_ENTITY);*/
    9090}
    9191
  • trunk/src/world_entities/test_entity.cc

    r7193 r7198  
    7373  LoadParam(root, "md2animation", this, TestEntity, setAnim)
    7474      .describe("sets the animation of the md2 model")
    75       .defaultValues(1, 1);
     75      .defaultValues(1);
    7676
    7777}
  • trunk/src/world_entities/world_entity.cc

    r7193 r7198  
    3636SHELL_COMMAND(model, WorldEntity, loadModel)
    3737->describe("sets the Model of the WorldEntity")
    38 ->defaultValues(2, "models/ships/fighter.obj", 1.0);
     38->defaultValues("models/ships/fighter.obj", 1.0);
    3939
    4040SHELL_COMMAND(debugEntity, WorldEntity, debugWE);
     
    9999  LoadParam(root, "md2texture", this, WorldEntity, loadMD2Texture)
    100100  .describe("the fileName of the texture, that should be loaded onto this world-entity. (must be relative to the data-dir)")
    101   .defaultValues(1, NULL);
     101  .defaultValues("");
    102102
    103103  // Model Loading
    104104  LoadParam(root, "model", this, WorldEntity, loadModel)
    105105  .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)")
    106   .defaultValues(3, NULL, 1.0f, 0);
     106  .defaultValues("", 1.0f, 0);
    107107
    108108  LoadParam(root, "maxHealth", this, WorldEntity, setHealthMax)
    109109  .describe("The Maximum health that can be loaded onto this entity")
    110   .defaultValues(1, 1.0f);
     110  .defaultValues(1.0f);
    111111
    112112  LoadParam(root, "health", this, WorldEntity, setHealth)
    113113  .describe("The Health the WorldEntity has at this moment")
    114   .defaultValues(1, 1.0f);
     114  .defaultValues(1.0f);
    115115}
    116116
     
    438438void WorldEntity::setHealthWidgetVisibilit(bool visibility)
    439439{
    440     if (visibility)
    441     {
    442       if (this->healthWidget != NULL)
    443         this->healthWidget->show();
    444       else
    445       {
    446         this->createHealthWidget();
    447         this->updateHealthWidget();
    448         this->healthWidget->show();
    449       }
    450     }
    451     else if (this->healthWidget != NULL)
    452       this->healthWidget->hide();
     440  if (visibility)
     441  {
     442    if (this->healthWidget != NULL)
     443      this->healthWidget->show();
     444    else
     445    {
     446      this->createHealthWidget();
     447      this->updateHealthWidget();
     448      this->healthWidget->show();
     449    }
     450  }
     451  else if (this->healthWidget != NULL)
     452    this->healthWidget->hide();
    453453}
    454454
     
    595595  {
    596596    SYNCHELP_WRITE_STRING("");
    597 }*/
     597  }*/
    598598
    599599  return SYNCHELP_WRITE_N;
Note: See TracChangeset for help on using the changeset viewer.