Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 25, 2008, 5:13:35 PM (16 years ago)
Author:
landauf
Message:

renamed Level to XMLFile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc

    r2006 r2010  
    3636#include "core/input/KeyBinder.h"
    3737#include "core/Loader.h"
     38#include "core/XMLFile.h"
    3839#include "core/CommandExecutor.h"
    3940#include "core/ConsoleCommand.h"
     
    5657        , inputState_(0)
    5758        , radar_(0)
    58         , startLevel_(0)
     59        , startFile_(0)
    5960    {
    6061        RegisterObject(GSLevel);
     
    154155        // call the loader
    155156        COUT(0) << "Loading level..." << std::endl;
    156         startLevel_ = new Level(Settings::getDataPath() + "levels/sample2.oxw");
    157         Loader::open(startLevel_);
     157        startFile_ = new XMLFile(Settings::getDataPath() + "levels/sample2.oxw");
     158        Loader::open(startFile_);
    158159    }
    159160
    160161    void GSLevel::unloadLevel()
    161162    {
    162         Loader::unload(startLevel_);
    163         delete this->startLevel_;
     163        Loader::unload(startFile_);
     164        delete this->startFile_;
    164165    }
    165166
Note: See TracChangeset for help on using the changeset viewer.