Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2016, 3:56:14 PM (7 years ago)
Author:
jhuwyler
Message:

GSLevel hat den durchbruch gebracht. Die Level werden nun geladen und auch der back-Button funktioniert. Das naechste Mal muessen die Map arrangiert und die Buttons unsichtbar gemacht werden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/StoryModeMap_HS16/src/orxonox/gametypes/StoryMode.cc

    r11255 r11269  
    4242{
    4343
     44    SetConsoleCommand("StoryMode", "exit", &StoryMode::exit);
    4445    RegisterUnloadableClass(StoryMode);
    4546   
     
    6162        this->gtinfo_->sendAnnounceMessage("Marvin isch Chef");
    6263    }
    63 
    64    void StoryMode::end()
     64*/
     65    void StoryMode::exit()
    6566    {
    66         if (this->missionAccomplished_ && !this->gtinfo_->hasEnded())
    67         {
    68             this->gtinfo_->sendAnnounceMessage("StoryMode accomplished!");
    69 
    70             LevelManager::getInstance().setLastFinishedCampaignMission(this->getFilename());
     67        orxout() << "s funktioniert"<< endl;
     68        for (StoryMode* mission : ObjectList<StoryMode>())
     69        { //TODO: make sure that only the desired mission is ended !! This is a dirty HACK, that would end ALL missions!
     70            mission->end();
    7171        }
    72         else if (!this->gtinfo_->hasEnded())
    73             this->gtinfo_->sendAnnounceMessage("StoryMode failed!");
    74 
    75         Gametype::end();
     72        //Gametype::end();
    7673    }
    77 
     74/*
    7875    void Mission::setTeams()
    7976    { //Set pawn-colours
Note: See TracChangeset for help on using the changeset viewer.