Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2005, 12:56:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more doxygen-tags in util

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/game_loader.cc

    r4445 r4487  
    3737
    3838/**
    39   \brief simple constructor
    40  */
     39   \brief simple constructor
     40*/
    4141GameLoader::GameLoader ()
    4242{
     
    4646
    4747/**
    48   \brief simple deconstructor
    49  */
     48   \brief simple deconstructor
     49*/
    5050GameLoader::~GameLoader () {}
    5151
     
    6464}
    6565
    66 
     66/**
     67   \brief initializes the GameLoader
     68*/
    6769ErrorMessage GameLoader::init()
    6870{
     
    8082/**
    8183   \brief reads a campaign definition file into a campaign class
    82    \param filename to be loaded
     84   \param fileName to be loaded
    8385   \returns the loaded campaign
    8486
    8587   this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns
    8688*/
    87 ErrorMessage GameLoader::loadCampaign(const char* name)
     89ErrorMessage GameLoader::loadCampaign(const char* fileName)
    8890{
    8991  ErrorMessage errorCode;
    90   char* campaignName = ResourceManager::getFullName(name);
     92  char* campaignName = ResourceManager::getFullName(fileName);
    9193  if (campaignName)
    9294    {
     
    101103/**
    102104   \brief loads a debug campaign for test purposes only.
    103    \param the identifier of the campaign.
     105   \param campaignID the identifier of the campaign.
    104106   \returns error message if not able to do so.
    105107*/
     
    198200 */
    199201ErrorMessage GameLoader::destroy()
    200 {}
     202{
     203
     204}
    201205
    202206
    203207/**
    204208   \brief reads a campaign definition file into a campaign class
    205    \param filename to be loaded
     209   \param fileName to be loaded
    206210   \returns the loaded campaign
    207211
    208212   this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns
    209213*/
    210 Campaign* GameLoader::fileToCampaign(const char *name)
     214Campaign* GameLoader::fileToCampaign(const char* fileName)
    211215{
    212216  /* do not entirely load the campaign. just the current world
     
    215219  */
    216220 
    217   if( name == NULL)
     221  if( fileName == NULL)
    218222    {
    219223      PRINTF(2)("No filename specified for loading");
     
    221225    }
    222226 
    223   TiXmlDocument* XMLDoc = new TiXmlDocument( name);
     227  TiXmlDocument* XMLDoc = new TiXmlDocument( fileName);
    224228  // load the campaign document
    225229  if( !XMLDoc->LoadFile())
    226230    {
    227231      // report an error
    228       PRINTF(1)("Could not load XML File %s: %s @ %d:%d\n", name, XMLDoc->ErrorDesc(), XMLDoc->ErrorRow(), XMLDoc->ErrorCol());
     232      PRINTF(1)("Could not load XML File %s: %s @ %d:%d\n", fileName, XMLDoc->ErrorDesc(), XMLDoc->ErrorRow(), XMLDoc->ErrorCol());
    229233      delete XMLDoc;
    230234      return NULL;
     
    255259/**
    256260   \brief handle keyboard commands
    257    \param the event to handle
     261   \param event the event to handle
    258262*/
    259263void GameLoader::process(const Event& event)
     
    290294
    291295
    292 /*
     296/**
    293297  \brief this changes to the next level
    294298*/
     
    300304
    301305
    302 /*
     306/**
    303307  \brief change to the previous level - not implemented
    304308
Note: See TracChangeset for help on using the changeset viewer.