Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4259 in orxonox.OLD


Ignore:
Timestamp:
May 22, 2005, 2:58:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/levelLoader: nicer comments

Location:
orxonox/branches/levelLoader/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelLoader/src/glmenu/glmenu_imagescreen.cc

    r4253 r4259  
    5757void GLMenuImageScreen::loadParams(const TiXmlElement* root)
    5858{
    59   LoadParam<GLMenuImageScreen>(root, "BackgroundImage", this, &GLMenuImageScreen::setBackgroundImage);
    60 
    61   LoadParam<GLMenuImageScreen>(root, "BackgroundPS", this, &GLMenuImageScreen::setPosScale);
    62 
    63   LoadParam<GLMenuImageScreen>(root, "BarImage", this, &GLMenuImageScreen::setBarImage);
    64  
    65   LoadParam<GLMenuImageScreen>(root, "BarPS", this, &GLMenuImageScreen::setBarPosScale);
    66 
    67   LoadParam<GLMenuImageScreen>(root, "ElementCount", this, &GLMenuImageScreen::setMaximum);
     59  LoadParam<GLMenuImageScreen>(root, "BackgroundImage", this, &GLMenuImageScreen::setBackgroundImage)
     60    .describe("sets the image to load onto the loadscreen");
     61
     62  LoadParam<GLMenuImageScreen>(root, "BackgroundPS", this, &GLMenuImageScreen::setPosScale)
     63    .describe("The Position and Scale of the Background Image in %(0-1.0). PosX, PosY, SizeX, SizeY");
     64
     65  LoadParam<GLMenuImageScreen>(root, "BarImage", this, &GLMenuImageScreen::setBarImage)
     66    .describe("sets the image of the LoadingBar");
     67 
     68  LoadParam<GLMenuImageScreen>(root, "BarPS", this, &GLMenuImageScreen::setBarPosScale)
     69    .describe("The Position and Scale of the Loading Bar in %(0-1.0). PosX, PosY, SizeX, SizeY");
     70
     71  LoadParam<GLMenuImageScreen>(root, "ElementCount", this, &GLMenuImageScreen::setMaximum)
     72    .describe("The Count of elements to load into the bar (this is only a maximum value)");
    6873}
    6974
  • orxonox/branches/levelLoader/src/story_entities/world.cc

    r4258 r4259  
    210210  PRINTF0("Creating a World\n");
    211211
    212   LoadParam<World>(root, "identifier", this, &World::setStoryID).describe("Sets the StoryID of this world");
    213   LoadParam<World>(root, "nextid", this, &World::setNextStoryID).describe("Sets the ID of the next world");
    214   LoadParam<World>(root, "path", this, &World::setPath).describe("The Filename of this World (relative from the data-dir)");
     212  LoadParam<World>(root, "identifier", this, &World::setStoryID)
     213    .describe("Sets the StoryID of this world");
     214  LoadParam<World>(root, "nextid", this, &World::setNextStoryID)
     215    .describe("Sets the ID of the next world");
     216  LoadParam<World>(root, "path", this, &World::setPath)
     217    .describe("The Filename of this World (relative from the data-dir)");
    215218
    216219
  • orxonox/branches/levelLoader/src/util/loading/load_param.cc

    r4256 r4259  
    209209void LoadClassDescription::printAll(void)
    210210{
    211   PRINT(3)("==============================================================\n");
    212   PRINT(3)(" Listing all the Loadable Options (loaded since Game started.\n\n");
     211  PRINT(3)("===============================================================\n");
     212  PRINT(3)(" Listing all the Loadable Options (loaded since Game started).\n\n");
    213213  tIterator<LoadClassDescription>* classIT = LoadClassDescription::classList->getIterator();
    214214  LoadClassDescription* enumClassDesc = classIT->nextElement();
     
    229229    }
    230230  delete classIT;
    231 
    232 }
     231  PRINT(3)("===============================================================\n");
     232}
  • orxonox/branches/levelLoader/src/world_entities/skybox.cc

    r4257 r4259  
    5656void SkyBox::loadParams(const TiXmlElement* root)
    5757{
    58   LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture).describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
     58  LoadParam<SkyBox>(root, "Materialset", this, &SkyBox::setTexture)
     59    .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg");
    5960}
    6061
  • orxonox/branches/levelLoader/src/world_entities/world_entity.cc

    r4257 r4259  
    4242{
    4343  // name setup
    44   LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName).describe("the name of the Object at hand");
     44  LoadParam<WorldEntity>(root, "name", this, &WorldEntity::setName)
     45    .describe("the name of the Object at hand");
    4546
    4647  // Model Loading     
    47   LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel).describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
     48  LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel)
     49    .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ;
    4850}
    4951
Note: See TracChangeset for help on using the changeset viewer.