Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.