Changeset 7198 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Mar 8, 2006, 2:30:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r7193 r7198 36 36 SHELL_COMMAND(model, WorldEntity, loadModel) 37 37 ->describe("sets the Model of the WorldEntity") 38 ->defaultValues( 2,"models/ships/fighter.obj", 1.0);38 ->defaultValues("models/ships/fighter.obj", 1.0); 39 39 40 40 SHELL_COMMAND(debugEntity, WorldEntity, debugWE); … … 99 99 LoadParam(root, "md2texture", this, WorldEntity, loadMD2Texture) 100 100 .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(""); 102 102 103 103 // Model Loading 104 104 LoadParam(root, "model", this, WorldEntity, loadModel) 105 105 .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); 107 107 108 108 LoadParam(root, "maxHealth", this, WorldEntity, setHealthMax) 109 109 .describe("The Maximum health that can be loaded onto this entity") 110 .defaultValues(1 , 1.0f);110 .defaultValues(1.0f); 111 111 112 112 LoadParam(root, "health", this, WorldEntity, setHealth) 113 113 .describe("The Health the WorldEntity has at this moment") 114 .defaultValues(1 , 1.0f);114 .defaultValues(1.0f); 115 115 } 116 116 … … 438 438 void WorldEntity::setHealthWidgetVisibilit(bool visibility) 439 439 { 440 441 442 443 444 445 446 447 448 449 450 451 452 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(); 453 453 } 454 454 … … 595 595 { 596 596 SYNCHELP_WRITE_STRING(""); 597 }*/597 }*/ 598 598 599 599 return SYNCHELP_WRITE_N;
Note: See TracChangeset
for help on using the changeset viewer.