Changeset 7198 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Mar 8, 2006, 2:30:19 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r7193 r7198 71 71 LoadParam(root, "size", this, Water, setSize) 72 72 .describe("the size of the WaterSurface") 73 .defaultValues( 2,1.0f, 1.0f);73 .defaultValues(1.0f, 1.0f); 74 74 75 75 LoadParam(root, "resolution", this, Water, setResolution) 76 76 .describe("sets the resolution of the water surface") 77 .defaultValues( 2,10, 10);77 .defaultValues(10, 10); 78 78 79 79 LoadParam(root, "height", this, Water, setHeight) 80 80 .describe("the height of the Waves") 81 .defaultValues( 1,0.5f);81 .defaultValues(0.5f); 82 82 } 83 83 -
trunk/src/world_entities/spawning_point.cc
r7193 r7198 76 76 LoadParam(root, "frequency", this, SpawningPoint, setSpawningFrequency) 77 77 .describe("sets the frequency of the spawning point") 78 .defaultValues(1 , 1.0f);78 .defaultValues(1.0f); 79 79 80 80 … … 82 82 LoadParam(root, "randomseed", this, SpawningPoint, setPositionSeed) 83 83 .describe("sets the random position seed (variance in the spawning location around the position)") 84 .defaultValues( 1,0.0f);84 .defaultValues(0.0f); 85 85 86 86 /* now load the seed */ 87 87 /* LoadParam(root, "classid", this, SpawningPoint, setSpawningEntity) 88 88 .describe("sets the class id of the entity to spawn") 89 .defaultValues( 1,CL_WORLD_ENTITY);*/89 .defaultValues(CL_WORLD_ENTITY);*/ 90 90 } 91 91 -
trunk/src/world_entities/test_entity.cc
r7193 r7198 73 73 LoadParam(root, "md2animation", this, TestEntity, setAnim) 74 74 .describe("sets the animation of the md2 model") 75 .defaultValues(1 , 1);75 .defaultValues(1); 76 76 77 77 } -
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.