Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 4:05:15 PM (8 years ago)
Author:
binderm
Message:

Campaignmenu improved, it's now possible to only show single levels and not all together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bindermFS16/src/orxonox/LevelManager.h

    r11071 r11173  
    4848#include "core/config/Configurable.h"
    4949
     50
     51namespace orxonox
     52{
     53
     54    class LevelStatus
     55    {
     56    public:
     57        LevelStatus();
     58        virtual ~LevelStatus();
     59       
     60
     61    private:
     62        bool won;
     63        std::vector<int> nextLevels;
     64
     65    };
     66}
     67
    5068// tolua_begin
    5169namespace orxonox
     
    6381        Damian 'Mozork' Frick
    6482
    65     @ingroup Orxonox
     83
     84    @ingroup Orxonox1
    6685    */
     86
     87
     88
     89
    6790    class _OrxonoxExport LevelManager
    6891    // tolua_end
     
    7497            virtual ~LevelManager();
    7598
     99            void setLevelStatus(int integer);
     100
     101
    76102            void setConfigValues(); //!< Set the config values for this object.
    77103
    78104            void requestActivity(Level* level); //!< Request activity for the input Level.
    79105            void releaseActivity(Level* level); //!< Release activity for the input Level.
     106
    80107            Level* getActiveLevel(); //!< Get the currently active Level.
    81108
    82109            // tolua_begin
     110            bool missionactivate(int index);
    83111            void setDefaultLevel(const std::string& levelName); //!< Set the default Level.
    84112            /**
     
    97125            inline unsigned int getNumberOfCampaignMissions()
    98126                { return this->campaignMissions_.size(); }
     127
    99128            inline const std::string& getCampaignMission(unsigned int index)
    100129                { return this->campaignMissions_[index]; }
     130
    101131
    102132            /**
     
    129159            std::string lastFinishedCampaignMission_;
    130160            std::vector<std::string> campaignMissions_;
     161            std::vector<LevelStatus> allLevelStatus_;
     162
     163
    131164
    132165            static LevelManager* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.