Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 4:15:54 PM (8 years ago)
Author:
fvultier
Message:

merged campain menu

Location:
code/branches/presentationFS16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS16

  • code/branches/presentationFS16/src/orxonox/LevelManager.h

    r11071 r11206  
    2424 *   Co-authors:
    2525 *      Damian 'Mozork' Frick
     26 *      Matthias Binder
    2627 *
    2728 */
     
    4748#include "util/Singleton.h"
    4849#include "core/config/Configurable.h"
     50#include "LevelStatus.h"
     51
    4952
    5053// tolua_begin
     
    6366        Damian 'Mozork' Frick
    6467
    65     @ingroup Orxonox
     68
     69    @ingroup Orxonox1
    6670    */
     71
     72
     73
     74
    6775    class _OrxonoxExport LevelManager
    6876    // tolua_end
     
    7482            virtual ~LevelManager();
    7583
     84            void buildallLevelStatus();
     85            void updateAllLevelStatus();
     86            void setLevelStatus(const std::string& LevelWon);
     87
     88
    7689            void setConfigValues(); //!< Set the config values for this object.
    7790
    7891            void requestActivity(Level* level); //!< Request activity for the input Level.
    7992            void releaseActivity(Level* level); //!< Release activity for the input Level.
     93
    8094            Level* getActiveLevel(); //!< Get the currently active Level.
    8195
    8296            // tolua_begin
     97            void updatewon(int lastwon);
     98            int missionactivate(int index);
    8399            void setDefaultLevel(const std::string& levelName); //!< Set the default Level.
    84100            /**
     
    91107            LevelInfoItem* getAvailableLevelListItem(unsigned int index); //!< Get the LevelInfoItem at the given index in the list of available Levels.
    92108
    93             void setLastFinishedCampaignMission(const std::string& lastFinishedCampaignMission);
    94             inline const std::string& getLastFinishedCampaignMission() const
    95                 { return this->lastFinishedCampaignMission_; }
     109            inline const std::string& getLastWonMission() const
     110                { return this->lastWonMission_; }
    96111
    97112            inline unsigned int getNumberOfCampaignMissions()
    98113                { return this->campaignMissions_.size(); }
     114
    99115            inline const std::string& getCampaignMission(unsigned int index)
    100116                { return this->campaignMissions_[index]; }
     117
    101118
    102119            /**
     
    127144            // config values
    128145            std::string defaultLevelName_;
    129             std::string lastFinishedCampaignMission_;
     146            std::string lastWonMission_;
    130147            std::vector<std::string> campaignMissions_;
     148            std::vector<int> allLevelWon_;                  //level i is won if allLevelWon_[i]=1
     149            std::vector<LevelStatus*> allLevelStatus_;
     150
     151
    131152
    132153            static LevelManager* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.