Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 11:34:58 PM (16 years ago)
Author:
nicolape
Message:
  • Skybox and ambient light load now from level file sample.oxw. Added objects to and methods to parse this tags. Added a tokenizer function to split strings into smaller strings (for reading out the light colours for examle). Moved Tokenizer and String2number into misc directory. deleted old unised xml class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/loader/LevelLoader.h

    r480 r507  
    77
    88#include <string>
     9#include <vector>
    910#include <iostream>
    1011
     
    2324        class _LoaderExport LevelLoader
    2425        {
     26        public:
     27                // Constructors, loads the level file and some information data
     28                LevelLoader(string file, string dir="levels");
     29                // Destructor
     30                ~LevelLoader();
     31                // Shows a simple loading screen
     32                void showLoadingScreen();
     33                // Loads all level data
     34                void loadLevel();
     35       
     36                // Getters
     37                string name();
     38                string description();
     39                string image();         
    2540        private:
    2641                // Level information
     
    3651                std::string loadingBarHeight_;
    3752               
     53                // Set to true if it was possible to load the level file
    3854                bool valid_;
    3955                       
     56                // Xml-Stuff
    4057                TiXmlDocument doc;
    4158                TiXmlElement* rootElement;     
    42         public:
    4359
    44                 // Constructors
    45                 LevelLoader(string file, string dir="levels");
    46                 ~LevelLoader();
    47                
    48                 void showLoadingScreen();
    49                 void loadLevel();
    50                
    51                 // Getters
    52                 string name();
    53                 string description();
    54                 string image();         
    55                
    56                 // Managers
    57                
    5860                       
    5961        };     
Note: See TracChangeset for help on using the changeset viewer.