Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 470 for code/branches


Ignore:
Timestamp:
Dec 12, 2007, 2:30:29 PM (17 years ago)
Author:
nicolape
Message:

Did some changes to levelloader

Location:
code/branches/FICN
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/bin/levels/sample.oxw

    r469 r470  
     1<?xml version="1.0"?>
    12<orxonoxworld name="Orxonox sample level" image="textures/menu/moonstation_512x512.jpg">
    23        <description>
  • code/branches/FICN/src/loader/LevelLoader.cc

    r469 r470  
    1919
    2020        // Assing general level infos to class variables
    21         //this->name_ = (std::string)rootNode.getAttribute("name").getText();
    22         //this->image_ = (std::string)rootNode.getAttribute("image").getText();
    23         //this->description_ = (std::string)rootNode.getChildNode("description").getText();
     21       
     22        this->name_ = rootNode.getAttribute("name");
     23        this->image_ = rootNode.getAttribute("image");
     24        this->description_ = rootNode.getChildNode("description").getText();
    2425 
    25         //this->loadingScreen();
     26        loadingScreenNode = rootNode.getChildNode("loading");
    2627 
     28        if (!loadingScreenNode.isEmpty())
     29        {
     30                this->showLoadingScreen();
     31        }
     32 
     33  /*
    2734  // Assign sub-nodes
    2835  if (rootNode.nChildNode("LightManager")==1)
    2936  {
    3037        // Init Luightmanager...
    31   }
     38  }*/
    3239 
    3340  /*
     
    6370}
    6471
    65 void LevelLoader::loadingScreen()
     72void LevelLoader::showLoadingScreen()
    6673{
    6774        cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n";
  • code/branches/FICN/src/loader/LevelLoader.h

    r469 r470  
    3131               
    3232                // Level information
    33                 string name_;
    34                 string description_;
    35                 string image_;
     33                std::string name_;
     34                std::string description_;
     35                std::string image_;
    3636                       
    3737        public:
     
    4141                ~LevelLoader();
    4242               
    43                 void loadingScreen();
     43                void showLoadingScreen();
    4444               
    4545                // Getters
Note: See TracChangeset for help on using the changeset viewer.